Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009511/0.0009511, allocations: 181.9 kB / 8.476 MB, free: 1.852 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.117/1.117, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008509/0.0008509, allocations: 90.45 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1568/0.1577, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06467/0.2223, allocations: 47.58 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.423, allocations: 78.12 MB / 440.8 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001653/0.4232, allocations: 65.34 kB / 440.8 MB, free: 11 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.01969/0.4429, allocations: 8.517 MB / 449.3 MB, free: 9.066 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.443, allocations: 11.44 kB / 449.3 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.4431, allocations: 64.97 kB / 449.4 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.4435, allocations: 355.1 kB / 449.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.4435, allocations: 15.22 kB / 449.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.4436, allocations: 30.81 kB / 449.8 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004318/0.444, allocations: 266.6 kB / 450.1 MB, free: 8.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.4446, allocations: 383.7 kB / 450.4 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4446, allocations: 3.938 kB / 450.4 MB, free: 8.617 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.555e-05/0.4446, allocations: 7.781 kB / 450.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4447, allocations: 11.59 kB / 450.5 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.4468, allocations: 1.637 MB / 452.1 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.447, allocations: 174.4 kB / 452.3 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.4472, allocations: 126 kB / 452.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.4472, allocations: 7.156 kB / 452.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.4473, allocations: 46.06 kB / 452.4 MB, free: 7.465 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.4473, allocations: 0 / 452.4 MB, free: 7.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001157/0.4484, allocations: 0.6951 MB / 453.1 MB, free: 7.012 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.16e-05/0.4485, allocations: 84.89 kB / 453.2 MB, free: 6.914 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.4487, allocations: 305 kB / 453.5 MB, free: 6.793 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.4488, allocations: 25.7 kB / 453.5 MB, free: 6.762 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.869e-05/0.4489, allocations: 248.9 kB / 453.8 MB, free: 6.562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.871e-05/0.4489, allocations: 106.8 kB / 453.9 MB, free: 6.484 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.4489, allocations: 0 / 453.9 MB, free: 6.484 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.132e-05/0.449, allocations: 354.7 kB / 454.2 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.4491, allocations: 76.62 kB / 454.3 MB, free: 6.156 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.4493, allocations: 169.8 kB / 454.5 MB, free: 6.043 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.4494, allocations: 107.8 kB / 454.6 MB, free: 6.023 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4494, allocations: 3.906 kB / 454.6 MB, free: 6.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005737/0.45, allocations: 382.1 kB / 455 MB, free: 5.902 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.45, allocations: 7.75 kB / 455 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.4501, allocations: 3.844 kB / 455 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003083/0.4504, allocations: 82.67 kB / 455 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003211/0.4507, allocations: 80.17 kB / 455.1 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/0.4523, allocations: 2.728 MB / 457.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.4526, allocations: 15.59 kB / 457.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.4526, allocations: 18.39 kB / 457.9 MB, free: 3.27 MB / 314.7 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 7.866e-05/0.4527, allocations: 112.6 kB / 458 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.4528, allocations: 42.72 kB / 458 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.881e-05/0.4529, allocations: 41.8 kB / 458.1 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.4529, allocations: 7.844 kB / 458.1 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4529, allocations: 0 / 458.1 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4529, allocations: 3.938 kB / 458.1 MB, free: 3.109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009892/0.4539, allocations: 0.8253 MB / 458.9 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4539, allocations: 3.906 kB / 458.9 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.4541, allocations: 46.31 kB / 459 MB, free: 2.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002512/0.4544, allocations: 87.92 kB / 459.1 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.4544, allocations: 0 / 459.1 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/0.4561, allocations: 2.726 MB / 461.8 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.4562, allocations: 7.75 kB / 461.8 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006037/0.4568, allocations: 0.5512 MB / 462.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001052/0.4578, allocations: 1.234 MB / 463.6 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.978e-05/0.4579, allocations: 115.9 kB / 463.7 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.675e-05/0.458, allocations: 4 kB / 463.7 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.4584, allocations: 30.84 kB / 463.7 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.4584, allocations: 23.47 kB / 463.7 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.4584, allocations: 11.22 kB / 463.8 MB, free: 14.85 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002163/0.4587, allocations: 230.8 kB / 464 MB, free: 14.76 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001106/0.4598, allocations: 101 kB / 464.1 MB, free: 14.76 MB / 330.7 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.0001482/0.4599, allocations: 104.7 kB / 464.2 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.4607, allocations: 453.8 kB / 464.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4607, allocations: 0 / 464.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.4612, allocations: 340.6 kB / 465 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.4615, allocations: 42.14 kB / 465 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.4629, allocations: 0.7187 MB / 465.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004479/0.4634, allocations: 0.8855 MB / 466.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4634, allocations: 3.938 kB / 466.6 MB, free: 12.99 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat