Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.734/1.734, allocations: 387.2 MB / 394.5 MB, free: 13.32 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.0009983/0.0009983, allocations: 184.6 kB / 487 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.106/1.106, allocations: 221.3 MB / 0.7819 GB, free: 6.836 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008612/0.0008612, allocations: 103.4 kB / 0.9213 GB, free: 43.73 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2363/0.2372, allocations: 148.5 MB / 1.066 GB, free: 7.555 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6021/0.8394, allocations: 142.3 MB / 1.205 GB, free: 1.824 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/1.025, allocations: 165.5 MB / 1.367 GB, free: 164 kB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/1.025, allocations: 79.94 kB / 1.367 GB, free: 84 kB / 0.9792 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.01408/1.039, allocations: 6.512 MB / 1.373 GB, free: 9.434 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/1.039, allocations: 12.5 kB / 1.373 GB, free: 9.422 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/1.039, allocations: 23.8 kB / 1.373 GB, free: 9.398 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/1.04, allocations: 218.7 kB / 1.374 GB, free: 9.145 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.33e-05/1.04, allocations: 29.89 kB / 1.374 GB, free: 9.109 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/1.04, allocations: 8 kB / 1.374 GB, free: 9.102 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001469/1.04, allocations: 68.11 kB / 1.374 GB, free: 9.035 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/1.04, allocations: 132.7 kB / 1.374 GB, free: 8.891 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/1.04, allocations: 224 / 1.374 GB, free: 8.891 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/1.04, allocations: 4 kB / 1.374 GB, free: 8.887 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/1.04, allocations: 8.125 kB / 1.374 GB, free: 8.879 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006687/1.041, allocations: 0.6022 MB / 1.374 GB, free: 8.223 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/1.041, allocations: 54.5 kB / 1.374 GB, free: 8.16 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.283e-05/1.041, allocations: 16.98 kB / 1.375 GB, free: 8.141 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/1.041, allocations: 0 / 1.375 GB, free: 8.141 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/1.041, allocations: 126.8 kB / 1.375 GB, free: 7.992 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/1.041, allocations: 0 / 1.375 GB, free: 7.992 MB / 0.9948 GB Notification: Performance of matching and sorting (n=7): time 0.0001586/1.041, allocations: 73.5 kB / 1.375 GB, free: 7.914 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/1.041, allocations: 132.5 kB / 1.375 GB, free: 7.754 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/1.041, allocations: 153.5 kB / 1.375 GB, free: 7.594 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/1.042, allocations: 29.7 kB / 1.375 GB, free: 7.559 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 6.01e-05/1.042, allocations: 139.4 kB / 1.375 GB, free: 7.418 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/1.042, allocations: 19.81 kB / 1.375 GB, free: 7.398 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/1.042, allocations: 0 / 1.375 GB, free: 7.398 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001305/1.042, allocations: 326.7 kB / 1.375 GB, free: 7.07 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.395e-05/1.042, allocations: 31.98 kB / 1.375 GB, free: 7.039 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.065e-05/1.042, allocations: 97.44 kB / 1.376 GB, free: 6.91 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.422e-05/1.042, allocations: 39.91 kB / 1.376 GB, free: 6.871 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/1.042, allocations: 0 / 1.376 GB, free: 6.871 MB / 0.9948 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002058/1.042, allocations: 149.3 kB / 1.376 GB, free: 6.719 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/1.042, allocations: 4 kB / 1.376 GB, free: 6.715 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/1.042, allocations: 4 kB / 1.376 GB, free: 6.711 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/1.042, allocations: 8.031 kB / 1.376 GB, free: 6.703 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/1.042, allocations: 39.92 kB / 1.376 GB, free: 6.664 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/1.042, allocations: 8.25 kB / 1.376 GB, free: 6.656 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/1.043, allocations: 27.83 kB / 1.376 GB, free: 6.629 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/1.043, allocations: 8 kB / 1.376 GB, free: 6.621 MB / 0.9948 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 7.709e-05/1.043, allocations: 138.6 kB / 1.376 GB, free: 6.473 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/1.043, allocations: 15.81 kB / 1.376 GB, free: 6.457 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/1.043, allocations: 21.39 kB / 1.376 GB, free: 6.438 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/1.043, allocations: 0 / 1.376 GB, free: 6.438 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.043, allocations: 0 / 1.376 GB, free: 6.438 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/1.043, allocations: 3.938 kB / 1.376 GB, free: 6.434 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/1.043, allocations: 190.1 kB / 1.376 GB, free: 6.211 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/1.043, allocations: 0 / 1.376 GB, free: 6.211 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.322e-05/1.043, allocations: 11.98 kB / 1.376 GB, free: 6.199 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/1.043, allocations: 0 / 1.376 GB, free: 6.199 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/1.043, allocations: 4 kB / 1.376 GB, free: 6.195 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/1.043, allocations: 0 / 1.376 GB, free: 6.195 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.043, allocations: 4 kB / 1.376 GB, free: 6.191 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001941/1.043, allocations: 136.9 kB / 1.376 GB, free: 6.039 MB / 0.9948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002891/1.043, allocations: 0.5443 MB / 1.377 GB, free: 5.473 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/1.044, allocations: 92.92 kB / 1.377 GB, free: 5.363 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/1.044, allocations: 0 / 1.377 GB, free: 5.363 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/1.044, allocations: 20.2 kB / 1.377 GB, free: 5.344 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/1.044, allocations: 7.984 kB / 1.377 GB, free: 5.336 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/1.044, allocations: 0 / 1.377 GB, free: 5.336 MB / 0.9948 GB Notification: Performance of sort global known variables: time 7.976e-05/1.044, allocations: 124.3 kB / 1.377 GB, free: 5.215 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0007927/1.045, allocations: 31.89 kB / 1.377 GB, free: 5.184 MB / 0.9948 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 0.0001387/1.045, allocations: 111.2 kB / 1.377 GB, free: 5.066 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.0001837/1.045, allocations: 131.3 kB / 1.377 GB, free: 4.926 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/1.045, allocations: 0 / 1.377 GB, free: 4.926 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 7.259e-05/1.045, allocations: 69.7 kB / 1.377 GB, free: 4.852 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001593/1.045, allocations: 15.92 kB / 1.377 GB, free: 4.836 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000395/1.046, allocations: 177.5 kB / 1.378 GB, free: 4.641 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002737/1.046, allocations: 0.7465 MB / 1.378 GB, free: 3.867 MB / 0.9948 GB Notification: Performance of SimCode: time 2.9e-07/1.046, allocations: 0 / 1.378 GB, free: 3.867 MB / 0.9948 GB (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat does not exist to compare? outputFormat=mat