Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",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.806/1.806, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.0009405/0.0009405, allocations: 185.2 kB / 490.8 MB, free: 1.934 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.13/1.13, allocations: 221.3 MB / 0.7863 GB, free: 13.66 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.000843/0.000843, allocations: 83.56 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4146/0.4155, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.6031, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4953/1.098, allocations: 166.3 MB / 1.374 GB, free: 17.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/1.099, allocations: 74.98 kB / 1.374 GB, free: 17.06 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.01397/1.113, allocations: 6.51 MB / 1.381 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/1.113, allocations: 8.281 kB / 1.381 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/1.113, allocations: 26.58 kB / 1.381 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/1.113, allocations: 213.4 kB / 1.381 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/1.113, allocations: 35.5 kB / 1.381 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/1.113, allocations: 6.656 kB / 1.381 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001418/1.113, allocations: 64.17 kB / 1.381 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/1.114, allocations: 132.7 kB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/1.114, allocations: 1.312 kB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/1.114, allocations: 0.5156 kB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/1.114, allocations: 5.891 kB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006316/1.114, allocations: 0.6067 MB / 1.382 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/1.114, allocations: 54.88 kB / 1.382 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.912e-05/1.114, allocations: 21.98 kB / 1.382 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/1.114, allocations: 7.422 kB / 1.382 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.734e-05/1.115, allocations: 120.1 kB / 1.382 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/1.115, allocations: 0 / 1.382 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001488/1.115, allocations: 74.94 kB / 1.382 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/1.115, allocations: 140.4 kB / 1.382 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/1.115, allocations: 152.1 kB / 1.382 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/1.115, allocations: 27.58 kB / 1.382 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.514e-05/1.115, allocations: 135.4 kB / 1.382 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/1.115, allocations: 17.31 kB / 1.382 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-06/1.115, allocations: 0 / 1.382 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.209e-05/1.115, allocations: 323.5 kB / 1.383 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.039e-05/1.115, allocations: 28.78 kB / 1.383 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.991e-05/1.115, allocations: 99.83 kB / 1.383 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.379e-05/1.115, allocations: 40.95 kB / 1.383 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.115, allocations: 5.25 kB / 1.383 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001991/1.116, allocations: 141.5 kB / 1.383 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/1.116, allocations: 9.281 kB / 1.383 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/1.116, allocations: 3.281 kB / 1.383 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/1.116, allocations: 3.812 kB / 1.383 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/1.116, allocations: 32.3 kB / 1.383 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/1.116, allocations: 8.422 kB / 1.383 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/1.116, allocations: 23.62 kB / 1.383 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/1.116, allocations: 14.11 kB / 1.383 GB, free: 30.23 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 8.845e-05/1.116, allocations: 144.2 kB / 1.383 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/1.116, allocations: 14.34 kB / 1.383 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/1.116, allocations: 14.52 kB / 1.383 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/1.116, allocations: 1.969 kB / 1.383 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/1.116, allocations: 0 / 1.383 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/1.116, allocations: 0.5156 kB / 1.383 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/1.116, allocations: 187.8 kB / 1.383 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/1.116, allocations: 5.219 kB / 1.383 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.452e-05/1.116, allocations: 14.88 kB / 1.383 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/1.116, allocations: 9.891 kB / 1.383 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/1.116, allocations: 5.281 kB / 1.383 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/1.116, allocations: 1.906 kB / 1.383 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.116, allocations: 0 / 1.383 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001853/1.116, allocations: 135.8 kB / 1.383 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002949/1.117, allocations: 0.5421 MB / 1.384 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/1.117, allocations: 85.48 kB / 1.384 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/1.117, allocations: 6.953 kB / 1.384 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/1.117, allocations: 16.78 kB / 1.384 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/1.117, allocations: 13.62 kB / 1.384 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/1.117, allocations: 3.359 kB / 1.384 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.971e-05/1.117, allocations: 131.7 kB / 1.384 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007563/1.118, allocations: 33.69 kB / 1.384 GB, free: 29.18 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 9.071e-05/1.118, allocations: 98.44 kB / 1.384 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001597/1.118, allocations: 133.7 kB / 1.385 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/1.118, allocations: 0.625 kB / 1.385 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.638e-05/1.118, allocations: 71.78 kB / 1.385 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/1.118, allocations: 27.55 kB / 1.385 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/1.119, allocations: 174.3 kB / 1.385 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/1.119, allocations: 0.7329 MB / 1.386 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.119, allocations: 0 / 1.386 GB, free: 28.18 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat does not exist to compare? outputFormat=mat