Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009966/0.0009966, allocations: 175 kB / 8.477 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.096/1.096, allocations: 205.2 MB / 214.1 MB, free: 5.434 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008568/0.0008568, allocations: 94.19 kB / 262.1 MB, free: 5.5 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1648/0.1657, allocations: 52.97 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06689/0.2326, allocations: 47.57 MB / 362.6 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.219/0.4516, allocations: 84.93 MB / 447.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.4518, allocations: 81.23 kB / 447.6 MB, free: 10.19 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.06173/0.5135, allocations: 29.43 MB / 477.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.5136, allocations: 8 kB / 477.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005055/0.5187, allocations: 0.7609 MB / 477.8 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008285/0.5195, allocations: 458.7 kB / 478.3 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/0.5196, allocations: 36 kB / 478.3 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.5198, allocations: 67.91 kB / 478.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001733/0.5215, allocations: 1.013 MB / 479.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.523, allocations: 0.8812 MB / 480.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/0.5231, allocations: 7.938 kB / 480.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.5231, allocations: 0 / 480.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.5232, allocations: 24 kB / 480.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005607/0.5288, allocations: 4.38 MB / 484.7 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008696/0.5297, allocations: 0.6388 MB / 485.3 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003266/0.53, allocations: 252.5 kB / 485.6 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.5301, allocations: 105.4 kB / 485.7 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.5301, allocations: 43.2 kB / 485.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=71): time 1.923e-06/0.5302, allocations: 0 / 485.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.001155/0.5313, allocations: 0.5463 MB / 486.3 MB, free: 6.328 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.5314, allocations: 111.5 kB / 486.4 MB, free: 6.195 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.5316, allocations: 267.2 kB / 486.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.5317, allocations: 29.77 kB / 486.7 MB, free: 5.898 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.5319, allocations: 433.9 kB / 487.1 MB, free: 5.465 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.532, allocations: 240.5 kB / 487.3 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.5321, allocations: 7.875 kB / 487.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5322, allocations: 350.7 kB / 487.7 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.5326, allocations: 226 kB / 487.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000503/0.5331, allocations: 0.5221 MB / 488.4 MB, free: 3.977 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007749/0.5339, allocations: 350.9 kB / 488.8 MB, free: 3.641 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.5339, allocations: 0 / 488.8 MB, free: 3.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001493/0.5354, allocations: 0.8239 MB / 489.6 MB, free: 2.809 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.5354, allocations: 9.875 kB / 489.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.5354, allocations: 11.91 kB / 489.6 MB, free: 2.789 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.5354, allocations: 16 kB / 489.6 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008584/0.5363, allocations: 236 kB / 489.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.5363, allocations: 27.92 kB / 489.9 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000537/0.5369, allocations: 86.97 kB / 490 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.185e-05/0.537, allocations: 47.98 kB / 490 MB, free: 2.383 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.5371, allocations: 136.6 kB / 490.1 MB, free: 2.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.5372, allocations: 47.44 kB / 490.2 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.5385, allocations: 0.676 MB / 490.9 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.5385, allocations: 8 kB / 490.9 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5386, allocations: 0 / 490.9 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.5386, allocations: 7.984 kB / 490.9 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.5409, allocations: 1.532 MB / 492.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5409, allocations: 0 / 492.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006594/0.5416, allocations: 147.8 kB / 492.6 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.5416, allocations: 8 kB / 492.6 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.5416, allocations: 11.91 kB / 492.6 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.5416, allocations: 4 kB / 492.6 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5416, allocations: 3.938 kB / 492.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001459/0.5431, allocations: 1.145 MB / 493.7 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001947/0.5451, allocations: 1.814 MB / 495.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.5452, allocations: 132.4 kB / 495.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.86e-05/0.5453, allocations: 8.031 kB / 495.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.5457, allocations: 19.92 kB / 495.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.5458, allocations: 36.59 kB / 495.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.946e-05/0.5458, allocations: 20 kB / 495.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001664/0.546, allocations: 187.1 kB / 495.9 MB, free: 12.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001353/0.5473, allocations: 235.1 kB / 496.2 MB, free: 12.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002264/0.5476, allocations: 148.1 kB / 496.3 MB, free: 11.92 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008467/0.5484, allocations: 0.6337 MB / 497 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5484, allocations: 0 / 497 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.5488, allocations: 294.4 kB / 497.2 MB, free: 11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.5491, allocations: 33.3 kB / 497.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.5527, allocations: 1.546 MB / 498.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006824/0.5534, allocations: 1.017 MB / 499.8 MB, free: 8.363 MB / 346.7 MB Notification: Performance of SimCode: time 2.595e-06/0.5534, allocations: 0 / 499.8 MB, free: 8.363 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat