Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",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 9.1.1-maint.9.1.x/package.mo): time 1.792/1.792, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.000985/0.0009851, allocations: 177.3 kB / 487 MB, free: 5.398 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.149/1.149, allocations: 221.3 MB / 0.7819 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008858/0.0008858, allocations: 99.5 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4014/0.4023, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.58, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5212/1.101, allocations: 195.9 MB / 1.397 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/1.102, allocations: 90.38 kB / 1.397 GB, free: 13.09 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.7142/1.816, allocations: 327.6 MB / 1.717 GB, free: 1.023 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/1.816, allocations: 8 kB / 1.717 GB, free: 1.016 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009987/1.826, allocations: 1.417 MB / 1.718 GB, free: 15.59 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009065/1.835, allocations: 4.219 MB / 1.722 GB, free: 11.29 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/1.835, allocations: 164 kB / 1.722 GB, free: 11.13 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008419/1.836, allocations: 295.8 kB / 1.723 GB, free: 10.84 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009604/1.845, allocations: 5.769 MB / 1.728 GB, free: 5.07 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3069/2.152, allocations: 7.707 MB / 1.736 GB, free: 381.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/2.153, allocations: 27.62 kB / 1.736 GB, free: 381.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005012/2.153, allocations: 21.06 kB / 1.736 GB, free: 381.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002246/2.153, allocations: 346.3 kB / 1.736 GB, free: 381.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03285/2.186, allocations: 39.09 MB / 1.774 GB, free: 357.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/2.189, allocations: 2.556 MB / 1.777 GB, free: 357.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002363/2.191, allocations: 2.507 MB / 1.779 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/2.191, allocations: 36.91 kB / 1.779 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/2.191, allocations: 60.62 kB / 1.779 GB, free: 357.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 4.469e-06/2.191, allocations: 0 / 1.779 GB, free: 357.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=424): time 0.0618/2.253, allocations: 27.91 MB / 1.807 GB, free: 355.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/2.253, allocations: 95.36 kB / 1.807 GB, free: 355.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/2.255, allocations: 1.641 MB / 1.808 GB, free: 355.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003577/2.256, allocations: 25.7 kB / 1.808 GB, free: 355.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006259/2.256, allocations: 1.896 MB / 1.81 GB, free: 354.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009442/2.257, allocations: 1.382 MB / 1.812 GB, free: 353.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/2.257, allocations: 0 / 1.812 GB, free: 353.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001641/2.258, allocations: 488.5 kB / 1.812 GB, free: 353.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002958/2.261, allocations: 2.742 MB / 1.815 GB, free: 353.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003288/2.264, allocations: 3.683 MB / 1.818 GB, free: 352.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003437/2.267, allocations: 3.356 MB / 1.822 GB, free: 352.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/2.267, allocations: 7.906 kB / 1.822 GB, free: 352.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.02212/2.289, allocations: 11.37 MB / 1.833 GB, free: 351.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/2.289, allocations: 6.719 kB / 1.833 GB, free: 351.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/2.289, allocations: 26.75 kB / 1.833 GB, free: 351.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01693/2.306, allocations: 4.967 MB / 1.838 GB, free: 351.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002012/2.308, allocations: 0.4908 MB / 1.838 GB, free: 351.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05882/2.367, allocations: 59.66 MB / 1.896 GB, free: 315.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003395/2.371, allocations: 68.41 kB / 1.896 GB, free: 315.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003601/2.371, allocations: 165.4 kB / 1.897 GB, free: 315.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 251 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006694/2.372, allocations: 190.7 kB / 1.897 GB, free: 315.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004811/2.372, allocations: 373.7 kB / 1.897 GB, free: 314.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02212/2.394, allocations: 11.25 MB / 1.908 GB, free: 310.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.678e-05/2.394, allocations: 39.5 kB / 1.908 GB, free: 310.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-05/2.394, allocations: 49.47 kB / 1.908 GB, free: 310.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.823e-05/2.395, allocations: 21.89 kB / 1.908 GB, free: 310.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02929/2.424, allocations: 16.75 MB / 1.925 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/2.424, allocations: 7.531 kB / 1.925 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/2.425, allocations: 269.1 kB / 1.925 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01442/2.44, allocations: 4.442 MB / 1.929 GB, free: 303.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00041/2.44, allocations: 23 kB / 1.929 GB, free: 303.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05684/2.497, allocations: 57.24 MB / 1.985 GB, free: 262.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.626e-05/2.497, allocations: 11.25 kB / 1.985 GB, free: 262.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02432/2.521, allocations: 15.08 MB / 2 GB, free: 248.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02792/2.549, allocations: 19.81 MB / 2.019 GB, free: 231.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/2.551, allocations: 0.9472 MB / 2.02 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006188/2.552, allocations: 23.56 kB / 2.02 GB, free: 230.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/2.554, allocations: 69.22 kB / 2.02 GB, free: 230.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004069/2.554, allocations: 212.7 kB / 2.02 GB, free: 230.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002615/2.555, allocations: 104 kB / 2.02 GB, free: 230.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001312/2.556, allocations: 1.201 MB / 2.022 GB, free: 229 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005034/2.561, allocations: 1.447 MB / 2.023 GB, free: 227.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 121 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 15,(3,100.0%) 15,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(2,100.0%) 8,(3,100.0%) 15,(4,100.0%) 16,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004133/2.561, allocations: 146 kB / 2.023 GB, free: 227.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01511/2.577, allocations: 10.51 MB / 2.033 GB, free: 217.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/2.577, allocations: 4 kB / 2.033 GB, free: 217.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01098/2.588, allocations: 7.035 MB / 2.04 GB, free: 211.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003779/2.591, allocations: 0.8474 MB / 2.041 GB, free: 210.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/2.608, allocations: 10.11 MB / 2.051 GB, free: 201.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003555/2.611, allocations: 4.104 MB / 2.055 GB, free: 198.1 MB / 1.151 GB Notification: Performance of SimCode: time 5.71e-07/2.611, allocations: 0 / 2.055 GB, free: 198.1 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat does not exist to compare? outputFormat=mat