Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_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 trunk/package.mo): time 0.001068/0.001068, allocations: 198.6 kB / 8.539 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.121/1.121, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008538/0.0008538, allocations: 91.89 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09194/0.09282, allocations: 56.89 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0809/0.1737, allocations: 51.48 MB / 394.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.3808, allocations: 87.17 MB / 481.9 MB, free: 5.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001751/0.381, allocations: 79.7 kB / 482 MB, free: 5.93 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.06054/0.4416, allocations: 28.58 MB / 0.4986 GB, free: 14.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.4416, allocations: 8.562 kB / 0.4986 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003503/0.4451, allocations: 0.5219 MB / 0.4991 GB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006764/0.4458, allocations: 423.8 kB / 0.4995 GB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.4459, allocations: 32 kB / 0.4995 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.446, allocations: 52 kB / 0.4996 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00152/0.4475, allocations: 0.8201 MB / 0.5004 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.4489, allocations: 0.7851 MB / 0.5011 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.449, allocations: 0 / 0.5011 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.216e-05/0.449, allocations: 0 / 0.5011 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.4491, allocations: 28 kB / 0.5012 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004875/0.454, allocations: 3.394 MB / 0.5045 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008449/0.4548, allocations: 0.5841 MB / 0.5051 GB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.4552, allocations: 232.5 kB / 0.5053 GB, free: 7.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.4553, allocations: 186.8 kB / 0.5055 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.4554, allocations: 43.22 kB / 0.5055 GB, free: 7.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 2.023e-06/0.4554, allocations: 0 / 0.5055 GB, free: 7.125 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.001104/0.4565, allocations: 0.5073 MB / 0.506 GB, free: 6.613 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.4565, allocations: 111.5 kB / 0.5061 GB, free: 6.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.4568, allocations: 212 kB / 0.5063 GB, free: 6.266 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.4568, allocations: 25.7 kB / 0.5063 GB, free: 6.234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.457, allocations: 374.6 kB / 0.5067 GB, free: 5.859 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.4571, allocations: 220.8 kB / 0.5069 GB, free: 5.641 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.4572, allocations: 0 / 0.5069 GB, free: 5.641 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4573, allocations: 346.8 kB / 0.5072 GB, free: 5.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.4576, allocations: 193.6 kB / 0.5074 GB, free: 5.105 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004148/0.458, allocations: 395.7 kB / 0.5078 GB, free: 4.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/0.4587, allocations: 287 kB / 0.5081 GB, free: 4.348 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4587, allocations: 7.984 kB / 0.5081 GB, free: 4.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001302/0.46, allocations: 0.687 MB / 0.5087 GB, free: 3.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.46, allocations: 5.969 kB / 0.5087 GB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.4601, allocations: 8 kB / 0.5087 GB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.4601, allocations: 12 kB / 0.5088 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.4608, allocations: 188.1 kB / 0.5089 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.4609, allocations: 23.92 kB / 0.509 GB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.4613, allocations: 63.22 kB / 0.509 GB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.44e-05/0.4614, allocations: 35.98 kB / 0.5091 GB, free: 3.316 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * 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.4615, allocations: 129.7 kB / 0.5092 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.4616, allocations: 35.53 kB / 0.5092 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.4629, allocations: 0.6252 MB / 0.5098 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4629, allocations: 15.89 kB / 0.5098 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.4629, allocations: 0 / 0.5098 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.4629, allocations: 0 / 0.5098 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00221/0.4651, allocations: 1.351 MB / 0.5112 GB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4652, allocations: 7.938 kB / 0.5112 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/0.4658, allocations: 143.9 kB / 0.5113 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.4658, allocations: 4 kB / 0.5113 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.4659, allocations: 4 kB / 0.5113 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.4659, allocations: 0 / 0.5113 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.4659, allocations: 11.84 kB / 0.5113 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001447/0.4673, allocations: 1.082 MB / 0.5124 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001851/0.4692, allocations: 1.757 MB / 0.5141 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.4693, allocations: 120.5 kB / 0.5142 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.274e-05/0.4694, allocations: 4 kB / 0.5142 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.4698, allocations: 27.95 kB / 0.5142 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.33e-05/0.4699, allocations: 36.59 kB / 0.5143 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/0.47, allocations: 16 kB / 0.5143 GB, free: 13.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001352/0.4701, allocations: 160.5 kB / 0.5144 GB, free: 13.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001312/0.4714, allocations: 239 kB / 0.5147 GB, free: 13.41 MB / 394.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 (72): * Single equations (assignments): 72 * 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.0002643/0.4717, allocations: 163 kB / 0.5148 GB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008433/0.4725, allocations: 0.5457 MB / 0.5154 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4726, allocations: 0 / 0.5154 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003642/0.4729, allocations: 288.1 kB / 0.5156 GB, free: 12.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4732, allocations: 12.44 kB / 0.5156 GB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.475, allocations: 0.9067 MB / 0.5165 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006863/0.4757, allocations: 0.9781 MB / 0.5175 GB, free: 10.46 MB / 394.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4757, allocations: 0 / 0.5175 GB, free: 10.46 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat