Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.769/1.769, allocations: 390.4 MB / 397.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009716/0.0009715, allocations: 188.9 kB / 490.8 MB, free: 11.2 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.098/1.098, allocations: 221.4 MB / 0.7863 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008333/0.0008333, allocations: 94.92 kB / 0.9264 GB, free: 4.539 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2275/0.2284, allocations: 149.1 MB / 1.072 GB, free: 15.47 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5204/0.7488, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1834/0.9323, allocations: 221.2 MB / 1.428 GB, free: 2.266 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.9325, allocations: 100.4 kB / 1.428 GB, free: 2.168 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.6429/1.575, allocations: 125.8 MB / 1.551 GB, free: 190.9 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/1.575, allocations: 7.906 kB / 1.551 GB, free: 190.9 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/1.586, allocations: 1.605 MB / 1.552 GB, free: 190.8 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00388/1.589, allocations: 2.108 MB / 1.554 GB, free: 190.4 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/1.59, allocations: 41.88 kB / 1.554 GB, free: 190.4 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/1.59, allocations: 70.69 kB / 1.554 GB, free: 190.4 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002283/1.592, allocations: 1.707 MB / 1.556 GB, free: 190.4 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/1.594, allocations: 2.094 MB / 1.558 GB, free: 189.9 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/1.594, allocations: 18.31 kB / 1.558 GB, free: 189.9 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/1.595, allocations: 3.875 kB / 1.558 GB, free: 189.9 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.499e-05/1.595, allocations: 93.52 kB / 1.558 GB, free: 189.9 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/1.606, allocations: 10.33 MB / 1.568 GB, free: 184.6 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/1.608, allocations: 1.433 MB / 1.57 GB, free: 184.5 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008727/1.609, allocations: 0.9112 MB / 1.571 GB, free: 184.5 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 5.574e-05/1.609, allocations: 14.64 kB / 1.571 GB, free: 184.5 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/1.609, allocations: 46.56 kB / 1.571 GB, free: 184.4 MB / 1.026 GB Notification: Performance of pre-optimization done (n=89): time 3.036e-06/1.609, allocations: 3.797 kB / 1.571 GB, free: 184.4 MB / 1.026 GB Notification: Performance of matching and sorting (n=153): time 0.01511/1.624, allocations: 7.001 MB / 1.577 GB, free: 183.8 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/1.624, allocations: 225.8 kB / 1.578 GB, free: 183.6 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008303/1.625, allocations: 0.8069 MB / 1.578 GB, free: 183.4 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.0001295/1.625, allocations: 25.7 kB / 1.578 GB, free: 183.4 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/1.625, allocations: 0.5291 MB / 1.579 GB, free: 183.1 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003078/1.625, allocations: 0.4966 MB / 1.579 GB, free: 182.7 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/1.626, allocations: 0 / 1.579 GB, free: 182.7 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 6.532e-05/1.626, allocations: 365.2 kB / 1.58 GB, free: 182.4 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/1.627, allocations: 1.136 MB / 1.581 GB, free: 182.4 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/1.628, allocations: 1.406 MB / 1.582 GB, free: 182.1 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/1.63, allocations: 1.31 MB / 1.584 GB, free: 182.1 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/1.63, allocations: 3.781 kB / 1.584 GB, free: 182.1 MB / 1.026 GB Notification: Performance of matching and sorting (n=186) (initialization): time 0.009586/1.639, allocations: 4.508 MB / 1.588 GB, free: 181.8 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/1.639, allocations: 2.906 kB / 1.588 GB, free: 181.8 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.639, allocations: 12.28 kB / 1.588 GB, free: 181.8 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008376/1.648, allocations: 2.091 MB / 1.59 GB, free: 181.7 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/1.65, allocations: 339.6 kB / 1.59 GB, free: 181.7 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02177/1.671, allocations: 20.89 MB / 1.611 GB, free: 171.8 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/1.674, allocations: 202 kB / 1.611 GB, free: 171.8 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/1.674, allocations: 64.44 kB / 1.611 GB, free: 171.8 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 17,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003129/1.675, allocations: 136.7 kB / 1.611 GB, free: 171.7 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003944/1.675, allocations: 163.4 kB / 1.611 GB, free: 171.6 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.686, allocations: 4.65 MB / 1.616 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/1.686, allocations: 18.75 kB / 1.616 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/1.686, allocations: 18.84 kB / 1.616 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/1.686, allocations: 6.469 kB / 1.616 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/1.699, allocations: 6.637 MB / 1.622 GB, free: 170.8 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/1.699, allocations: 3.656 kB / 1.622 GB, free: 170.8 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/1.701, allocations: 281.6 kB / 1.623 GB, free: 170.8 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007539/1.708, allocations: 1.934 MB / 1.625 GB, free: 170.7 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/1.709, allocations: 15.3 kB / 1.625 GB, free: 170.7 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02036/1.729, allocations: 20.01 MB / 1.644 GB, free: 160.8 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.729, allocations: 4.406 kB / 1.644 GB, free: 160.8 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008761/1.738, allocations: 4.353 MB / 1.648 GB, free: 160.2 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0086/1.746, allocations: 4.76 MB / 1.653 GB, free: 159.1 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008516/1.747, allocations: 0.4964 MB / 1.653 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003171/1.748, allocations: 6.859 kB / 1.653 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.75, allocations: 210.5 kB / 1.654 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/1.75, allocations: 82.88 kB / 1.654 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/1.75, allocations: 53.62 kB / 1.654 GB, free: 158.9 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.0006714/1.751, allocations: 0.6074 MB / 1.654 GB, free: 158.8 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.002446/1.753, allocations: 0.5937 MB / 1.655 GB, free: 158.8 MB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000359/1.753, allocations: 183.8 kB / 1.655 GB, free: 158.7 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.006123/1.76, allocations: 4.046 MB / 1.659 GB, free: 157.8 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.76, allocations: 4.125 kB / 1.659 GB, free: 157.8 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.00446/1.764, allocations: 2.631 MB / 1.662 GB, free: 157 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/1.766, allocations: 420 kB / 1.662 GB, free: 156.9 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006347/1.772, allocations: 3.238 MB / 1.665 GB, free: 155.7 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/1.773, allocations: 1.626 MB / 1.667 GB, free: 154.5 MB / 1.026 GB Notification: Performance of SimCode: time 5.61e-07/1.773, allocations: 1.125 kB / 1.667 GB, free: 154.5 MB / 1.026 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat does not exist to compare? outputFormat=mat