Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor",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.771/1.771, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0009433/0.0009433, allocations: 189.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.123/1.123, allocations: 221.3 MB / 0.7863 GB, free: 13.75 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.0008374/0.0008374, allocations: 84.69 kB / 0.9264 GB, free: 14.28 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4085/0.4093, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.5882, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5045/1.093, allocations: 171.5 MB / 1.379 GB, free: 17.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/1.093, allocations: 90.95 kB / 1.379 GB, free: 17.11 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.03278/1.126, allocations: 15.72 MB / 1.395 GB, free: 27.46 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/1.126, allocations: 8.938 kB / 1.395 GB, free: 27.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000635/1.126, allocations: 80.91 kB / 1.395 GB, free: 27.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/1.127, allocations: 235.8 kB / 1.395 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/1.127, allocations: 5.781 kB / 1.395 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/1.127, allocations: 13.64 kB / 1.395 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003086/1.127, allocations: 185.2 kB / 1.395 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/1.127, allocations: 294.1 kB / 1.395 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/1.127, allocations: 0.75 kB / 1.395 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/1.127, allocations: 4.562 kB / 1.395 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.489e-05/1.127, allocations: 21.45 kB / 1.395 GB, free: 27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/1.129, allocations: 1.581 MB / 1.397 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/1.129, allocations: 178 kB / 1.397 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/1.129, allocations: 86.91 kB / 1.397 GB, free: 25.51 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/1.129, allocations: 87.31 kB / 1.397 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.526e-05/1.129, allocations: 35.97 kB / 1.397 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.302e-06/1.129, allocations: 0 / 1.397 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0006011/1.13, allocations: 275 kB / 1.398 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.769e-05/1.13, allocations: 86.64 kB / 1.398 GB, free: 25.15 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/1.13, allocations: 143.2 kB / 1.398 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/1.13, allocations: 26.83 kB / 1.398 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/1.13, allocations: 151.3 kB / 1.398 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/1.13, allocations: 45.53 kB / 1.398 GB, free: 24.85 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/1.13, allocations: 0 / 1.398 GB, free: 24.85 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.526e-05/1.13, allocations: 325.5 kB / 1.398 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/1.13, allocations: 80.47 kB / 1.398 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/1.131, allocations: 148.9 kB / 1.399 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/1.131, allocations: 127.9 kB / 1.399 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/1.131, allocations: 1.375 kB / 1.399 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004651/1.131, allocations: 285.9 kB / 1.399 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003092/1.132, allocations: 0.9645 MB / 1.4 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/1.132, allocations: 1.812 kB / 1.4 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/1.132, allocations: 4.656 kB / 1.4 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/1.132, allocations: 49.78 kB / 1.4 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/1.132, allocations: 4.25 kB / 1.4 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/1.132, allocations: 18.08 kB / 1.4 GB, free: 23.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/1.132, allocations: 11.22 kB / 1.4 GB, free: 23.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/1.132, allocations: 11.81 kB / 1.4 GB, free: 23.27 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003822/1.133, allocations: 214.6 kB / 1.4 GB, free: 23.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/1.133, allocations: 6.75 kB / 1.4 GB, free: 23.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.468e-06/1.133, allocations: 3.844 kB / 1.4 GB, free: 23.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/1.133, allocations: 49.47 kB / 1.4 GB, free: 23.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/1.133, allocations: 15.33 kB / 1.4 GB, free: 23.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/1.133, allocations: 10.45 kB / 1.4 GB, free: 23.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/1.133, allocations: 14.38 kB / 1.4 GB, free: 23.19 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.378e-05/1.133, allocations: 112.3 kB / 1.4 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/1.133, allocations: 14.38 kB / 1.4 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003905/1.133, allocations: 228.6 kB / 1.401 GB, free: 22.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/1.133, allocations: 1.688 kB / 1.401 GB, free: 22.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/1.133, allocations: 0.6875 kB / 1.401 GB, free: 22.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/1.133, allocations: 0.7812 kB / 1.401 GB, free: 22.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/1.135, allocations: 1.05 MB / 1.402 GB, free: 22.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.135, allocations: 3.141 kB / 1.402 GB, free: 22.19 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/1.135, allocations: 36 kB / 1.402 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/1.135, allocations: 8.25 kB / 1.402 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/1.135, allocations: 4.406 kB / 1.402 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/1.135, allocations: 4.688 kB / 1.402 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/1.135, allocations: 7.062 kB / 1.402 GB, free: 22.17 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003962/1.135, allocations: 0.5269 MB / 1.402 GB, free: 21.67 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005096/1.136, allocations: 0.904 MB / 1.403 GB, free: 20.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.853e-05/1.136, allocations: 114 kB / 1.403 GB, free: 20.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/1.136, allocations: 12.27 kB / 1.403 GB, free: 20.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/1.136, allocations: 10.62 kB / 1.403 GB, free: 20.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/1.136, allocations: 18.33 kB / 1.403 GB, free: 20.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/1.136, allocations: 10.81 kB / 1.403 GB, free: 20.67 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.972e-05/1.136, allocations: 126.6 kB / 1.403 GB, free: 20.58 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001662/1.138, allocations: 83.22 kB / 1.403 GB, free: 20.58 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001393/1.138, allocations: 127 kB / 1.404 GB, free: 20.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004443/1.138, allocations: 314.9 kB / 1.404 GB, free: 20.42 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.139, allocations: 0.5 kB / 1.404 GB, free: 20.42 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/1.139, allocations: 87.98 kB / 1.404 GB, free: 20.4 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/1.139, allocations: 27.86 kB / 1.404 GB, free: 20.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/1.14, allocations: 386 kB / 1.404 GB, free: 20.14 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/1.14, allocations: 0.7718 MB / 1.405 GB, free: 19.4 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.14, allocations: 3.938 kB / 1.405 GB, free: 19.4 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat