Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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/Buildings 10.0.0-master/package.mo): time 1.799/1.799, allocations: 390.4 MB / 397.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009313/0.0009313, allocations: 181.3 kB / 490.8 MB, free: 1.977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.151/1.151, allocations: 221.3 MB / 0.7863 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008497/0.0008497, allocations: 91.44 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4244/0.4253, allocations: 149.1 MB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.6085, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5325/1.141, allocations: 192.9 MB / 1.4 GB, free: 8.512 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/1.141, allocations: 95.41 kB / 1.4 GB, free: 8.457 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.07029/1.212, allocations: 34.59 MB / 1.434 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/1.212, allocations: 8 kB / 1.434 GB, free: 11.14 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/1.213, allocations: 198.9 kB / 1.434 GB, free: 10.95 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000849/1.214, allocations: 499.6 kB / 1.435 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/1.214, allocations: 16 kB / 1.435 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/1.214, allocations: 35.56 kB / 1.435 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007057/1.215, allocations: 482.6 kB / 1.435 GB, free: 10.1 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009468/1.216, allocations: 0.8027 MB / 1.436 GB, free: 9.352 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/1.216, allocations: 11.84 kB / 1.436 GB, free: 9.34 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/1.216, allocations: 4 kB / 1.436 GB, free: 9.336 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/1.216, allocations: 44.78 kB / 1.436 GB, free: 9.297 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003716/1.22, allocations: 4.491 MB / 1.44 GB, free: 4.867 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/1.22, allocations: 278.3 kB / 1.441 GB, free: 4.676 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/1.22, allocations: 219.4 kB / 1.441 GB, free: 4.535 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/1.22, allocations: 4 kB / 1.441 GB, free: 4.531 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/1.22, allocations: 41.31 kB / 1.441 GB, free: 4.484 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 1.653e-06/1.22, allocations: 4 kB / 1.441 GB, free: 4.48 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.003561/1.224, allocations: 2.017 MB / 1.443 GB, free: 2.785 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/1.224, allocations: 55.41 kB / 1.443 GB, free: 2.719 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/1.224, allocations: 331.7 kB / 1.443 GB, free: 2.461 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/1.224, allocations: 25.7 kB / 1.443 GB, free: 2.43 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/1.224, allocations: 282.5 kB / 1.443 GB, free: 2.176 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.945e-05/1.224, allocations: 142.1 kB / 1.444 GB, free: 2.051 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.422e-05/1.224, allocations: 4 kB / 1.444 GB, free: 2.047 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.667e-05/1.225, allocations: 355.5 kB / 1.444 GB, free: 1.711 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/1.225, allocations: 226.7 kB / 1.444 GB, free: 1.57 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/1.225, allocations: 378.8 kB / 1.444 GB, free: 1.223 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/1.226, allocations: 275.7 kB / 1.445 GB, free: 1.043 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.226, allocations: 4 kB / 1.445 GB, free: 1.039 MB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001381/1.227, allocations: 0.8391 MB / 1.446 GB, free: 388 kB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/1.227, allocations: 4 kB / 1.446 GB, free: 384 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/1.227, allocations: 11.91 kB / 1.446 GB, free: 372 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007323/1.228, allocations: 228 kB / 1.446 GB, free: 176 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/1.228, allocations: 103.4 kB / 1.446 GB, free: 76 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/1.232, allocations: 4.623 MB / 1.45 GB, free: 11.47 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/1.232, allocations: 20.08 kB / 1.45 GB, free: 11.45 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/1.232, allocations: 23.19 kB / 1.45 GB, free: 11.43 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/1.233, allocations: 120.4 kB / 1.451 GB, free: 11.31 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.81e-05/1.233, allocations: 47.44 kB / 1.451 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/1.234, allocations: 0.7322 MB / 1.451 GB, free: 10.72 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/1.234, allocations: 8 kB / 1.451 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/1.234, allocations: 0 / 1.451 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/1.234, allocations: 7.891 kB / 1.451 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/1.236, allocations: 1.383 MB / 1.453 GB, free: 9.551 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/1.236, allocations: 0 / 1.453 GB, free: 9.551 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003782/1.236, allocations: 63.89 kB / 1.453 GB, free: 9.488 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006507/1.237, allocations: 209.1 kB / 1.453 GB, free: 9.312 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/1.237, allocations: 4 kB / 1.453 GB, free: 9.309 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003696/1.241, allocations: 4.533 MB / 1.457 GB, free: 4.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.241, allocations: 3.938 kB / 1.457 GB, free: 4.766 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00152/1.242, allocations: 1.199 MB / 1.459 GB, free: 3.762 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001948/1.244, allocations: 1.899 MB / 1.46 GB, free: 2.184 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/1.244, allocations: 163.9 kB / 1.461 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.456e-05/1.245, allocations: 0 / 1.461 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/1.245, allocations: 11.98 kB / 1.461 GB, free: 2.008 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/1.245, allocations: 35.38 kB / 1.461 GB, free: 1.977 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/1.245, allocations: 15.67 kB / 1.461 GB, free: 1.965 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002044/1.245, allocations: 249 kB / 1.461 GB, free: 1.773 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001085/1.246, allocations: 155.9 kB / 1.461 GB, free: 1.621 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001606/1.246, allocations: 115.4 kB / 1.461 GB, free: 1.504 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001248/1.248, allocations: 0.9167 MB / 1.462 GB, free: 0.7422 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.248, allocations: 4 kB / 1.462 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007553/1.248, allocations: 0.6192 MB / 1.463 GB, free: 180 kB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006371/1.249, allocations: 142 kB / 1.463 GB, free: 68 kB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/1.251, allocations: 0.9567 MB / 1.464 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005435/1.251, allocations: 0.9907 MB / 1.465 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of SimCode: time 2.7e-07/1.251, allocations: 0 / 1.465 GB, free: 14.16 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat