Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",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 trunk/package.mo): time 0.001093/0.001093, allocations: 204.2 kB / 8.543 MB, free: 468 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.153/1.153, allocations: 225.5 MB / 234.4 MB, free: 9.535 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009143/0.0009144, allocations: 104.4 kB / 286.3 MB, free: 5.824 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09271/0.09365, allocations: 56.88 MB / 343.2 MB, free: 12.93 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.3148, allocations: 51.47 MB / 394.7 MB, free: 3.094 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0906/0.4055, allocations: 80.74 MB / 475.4 MB, free: 14.07 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.4057, allocations: 79.95 kB / 475.5 MB, free: 13.99 MB / 402.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.02233/0.428, allocations: 8.913 MB / 484.4 MB, free: 4.996 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.4281, allocations: 8 kB / 484.4 MB, free: 4.988 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.4284, allocations: 91.22 kB / 484.5 MB, free: 4.898 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.4288, allocations: 358.5 kB / 484.9 MB, free: 4.504 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.4288, allocations: 16 kB / 484.9 MB, free: 4.488 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.714e-05/0.4289, allocations: 28 kB / 484.9 MB, free: 4.461 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005108/0.4294, allocations: 274 kB / 485.2 MB, free: 4.191 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005849/0.43, allocations: 385.3 kB / 485.6 MB, free: 3.797 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.43, allocations: 0 / 485.6 MB, free: 3.797 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.4301, allocations: 4.125 kB / 485.6 MB, free: 3.793 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.4301, allocations: 16 kB / 485.6 MB, free: 3.777 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.4325, allocations: 1.629 MB / 487.2 MB, free: 2.059 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.4328, allocations: 176.3 kB / 487.4 MB, free: 1.871 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.4329, allocations: 118.3 kB / 487.5 MB, free: 1.75 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.433, allocations: 7.906 kB / 487.5 MB, free: 1.742 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.433, allocations: 46.5 kB / 487.6 MB, free: 1.688 MB / 402.8 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.433, allocations: 7.938 kB / 487.6 MB, free: 1.68 MB / 402.8 MB Notification: Performance of matching and sorting (n=32): time 0.001259/0.4343, allocations: 0.688 MB / 488.2 MB, free: 0.9297 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.4343, allocations: 81.11 kB / 488.3 MB, free: 0.832 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.4347, allocations: 306.1 kB / 488.6 MB, free: 0.5273 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.4347, allocations: 25.7 kB / 488.7 MB, free: 0.4961 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.4348, allocations: 255.3 kB / 488.9 MB, free: 244 kB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.57e-05/0.4349, allocations: 106.4 kB / 489 MB, free: 136 kB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.399e-05/0.4349, allocations: 0 / 489 MB, free: 136 kB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.435, allocations: 346.8 kB / 489.3 MB, free: 15.79 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.4352, allocations: 80.88 kB / 489.4 MB, free: 15.71 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.4354, allocations: 169.9 kB / 489.6 MB, free: 15.5 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.4356, allocations: 105.7 kB / 489.7 MB, free: 15.4 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.4356, allocations: 4 kB / 489.7 MB, free: 15.39 MB / 418.8 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006947/0.4363, allocations: 376.9 kB / 490.1 MB, free: 15.02 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.4363, allocations: 6.969 kB / 490.1 MB, free: 15.02 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.4363, allocations: 4 kB / 490.1 MB, free: 15.01 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.4366, allocations: 85.69 kB / 490.2 MB, free: 14.92 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.437, allocations: 83.88 kB / 490.2 MB, free: 14.84 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/0.4392, allocations: 2.734 MB / 493 MB, free: 11.88 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.4395, allocations: 15.84 kB / 493 MB, free: 11.87 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.4395, allocations: 16.06 kB / 493 MB, free: 11.85 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.4396, allocations: 112.9 kB / 493.1 MB, free: 11.73 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-05/0.4397, allocations: 39.53 kB / 493.2 MB, free: 11.7 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.717e-05/0.4398, allocations: 51.03 kB / 493.2 MB, free: 11.64 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4398, allocations: 4 kB / 493.2 MB, free: 11.64 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4398, allocations: 0 / 493.2 MB, free: 11.64 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.4398, allocations: 4 kB / 493.2 MB, free: 11.63 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.441, allocations: 0.8263 MB / 494 MB, free: 10.76 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.441, allocations: 0 / 494 MB, free: 10.76 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.4412, allocations: 47.91 kB / 494.1 MB, free: 10.71 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/0.4415, allocations: 93.53 kB / 494.2 MB, free: 10.61 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.4415, allocations: 0 / 494.2 MB, free: 10.61 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001986/0.4435, allocations: 2.73 MB / 496.9 MB, free: 7.652 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4436, allocations: 0 / 496.9 MB, free: 7.652 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000704/0.4443, allocations: 0.5602 MB / 497.5 MB, free: 7.062 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001302/0.4456, allocations: 1.225 MB / 498.7 MB, free: 5.805 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.037e-05/0.4457, allocations: 108.7 kB / 498.8 MB, free: 5.68 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.4457, allocations: 7.906 kB / 498.8 MB, free: 5.672 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/0.4461, allocations: 27.98 kB / 498.8 MB, free: 5.645 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.4462, allocations: 16.25 kB / 498.8 MB, free: 5.629 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.4462, allocations: 15.98 kB / 498.9 MB, free: 5.613 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0002272/0.4464, allocations: 236.6 kB / 499.1 MB, free: 5.383 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.00115/0.4476, allocations: 107.9 kB / 499.2 MB, free: 5.277 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00017/0.4478, allocations: 111.1 kB / 499.3 MB, free: 5.156 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.0007027/0.4485, allocations: 458.4 kB / 499.8 MB, free: 4.691 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4485, allocations: 0 / 499.8 MB, free: 4.691 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/0.449, allocations: 339.3 kB / 0.4884 GB, free: 4.34 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.4493, allocations: 37.64 kB / 0.4884 GB, free: 4.305 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.4507, allocations: 0.7134 MB / 0.4891 GB, free: 3.555 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.4511, allocations: 0.8884 MB / 0.49 GB, free: 2.641 MB / 418.8 MB Notification: Performance of SimCode: time 2.7e-07/0.4512, allocations: 0 / 0.49 GB, free: 2.641 MB / 418.8 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat