Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.754/1.754, allocations: 387.2 MB / 394.5 MB, free: 13.31 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.0009633/0.0009634, allocations: 178.3 kB / 487 MB, free: 0.707 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.108/1.108, allocations: 221.3 MB / 0.7819 GB, free: 6.773 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.0009085/0.0009085, allocations: 105 kB / 0.9213 GB, free: 43.72 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2161/0.2171, allocations: 148.5 MB / 1.066 GB, free: 7.516 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4937/0.7108, allocations: 142.3 MB / 1.205 GB, free: 72.72 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.8737, allocations: 170.7 MB / 1.372 GB, free: 8.52 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.874, allocations: 95.92 kB / 1.372 GB, free: 8.426 MB / 0.8698 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.03453/0.9085, allocations: 15.72 MB / 1.387 GB, free: 8.582 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.9086, allocations: 8 kB / 1.387 GB, free: 8.574 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006243/0.9092, allocations: 83.62 kB / 1.388 GB, free: 8.492 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.9095, allocations: 231.9 kB / 1.388 GB, free: 8.227 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.9095, allocations: 8 kB / 1.388 GB, free: 8.219 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.9095, allocations: 8 kB / 1.388 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002972/0.9098, allocations: 192.6 kB / 1.388 GB, free: 8.02 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.9102, allocations: 299.7 kB / 1.388 GB, free: 7.695 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.9102, allocations: 0 / 1.388 GB, free: 7.695 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.9102, allocations: 1.781 kB / 1.388 GB, free: 7.695 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.821e-05/0.9103, allocations: 19.98 kB / 1.388 GB, free: 7.676 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.9117, allocations: 1.582 MB / 1.39 GB, free: 5.957 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.9119, allocations: 181.2 kB / 1.39 GB, free: 5.762 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.912, allocations: 89.61 kB / 1.39 GB, free: 5.668 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.9122, allocations: 89.09 kB / 1.39 GB, free: 5.562 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.9122, allocations: 38.47 kB / 1.39 GB, free: 5.516 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.9122, allocations: 0 / 1.39 GB, free: 5.516 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0006138/0.9128, allocations: 274.8 kB / 1.39 GB, free: 5.242 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.9129, allocations: 81.11 kB / 1.391 GB, free: 5.145 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.913, allocations: 142 kB / 1.391 GB, free: 5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.913, allocations: 29.7 kB / 1.391 GB, free: 4.965 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.001e-05/0.9131, allocations: 143.9 kB / 1.391 GB, free: 4.816 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.9131, allocations: 47.58 kB / 1.391 GB, free: 4.77 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.9132, allocations: 0 / 1.391 GB, free: 4.77 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.833e-05/0.9133, allocations: 322.8 kB / 1.391 GB, free: 4.445 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.9134, allocations: 91.91 kB / 1.391 GB, free: 4.355 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.9135, allocations: 150.5 kB / 1.391 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.9138, allocations: 127.8 kB / 1.392 GB, free: 4.055 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.9138, allocations: 0 / 1.392 GB, free: 4.055 MB / 0.8855 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004549/0.9142, allocations: 285.2 kB / 1.392 GB, free: 3.77 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000314/0.9146, allocations: 0.9631 MB / 1.393 GB, free: 2.734 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.9146, allocations: 4.75 kB / 1.393 GB, free: 2.73 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.9146, allocations: 4 kB / 1.393 GB, free: 2.727 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.9149, allocations: 47.91 kB / 1.393 GB, free: 2.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.9149, allocations: 6.188 kB / 1.393 GB, free: 2.676 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.915, allocations: 23.83 kB / 1.393 GB, free: 2.652 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.9151, allocations: 12 kB / 1.393 GB, free: 2.641 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.091e-06/0.9151, allocations: 4 kB / 1.393 GB, free: 2.637 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003867/0.9155, allocations: 224.1 kB / 1.393 GB, free: 2.418 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-06/0.9155, allocations: 2.25 kB / 1.393 GB, free: 2.418 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-06/0.9155, allocations: 4.312 kB / 1.393 GB, free: 2.414 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.9157, allocations: 51.91 kB / 1.393 GB, free: 2.363 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.9157, allocations: 5.312 kB / 1.393 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.9158, allocations: 15.89 kB / 1.393 GB, free: 2.344 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.9158, allocations: 8 kB / 1.393 GB, free: 2.336 MB / 0.8855 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.955e-05/0.9159, allocations: 112.9 kB / 1.393 GB, free: 2.219 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.916, allocations: 15.81 kB / 1.393 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000394/0.9164, allocations: 224 kB / 1.394 GB, free: 1.977 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.9164, allocations: 4 kB / 1.394 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.9164, allocations: 0 / 1.394 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.9164, allocations: 0 / 1.394 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.9176, allocations: 1.05 MB / 1.395 GB, free: 0.8008 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-06/0.9176, allocations: 7.906 kB / 1.395 GB, free: 0.793 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.9178, allocations: 37.28 kB / 1.395 GB, free: 0.7578 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.9178, allocations: 4 kB / 1.395 GB, free: 0.7539 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.9178, allocations: 4 kB / 1.395 GB, free: 0.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.9178, allocations: 7.938 kB / 1.395 GB, free: 0.7422 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.9178, allocations: 4 kB / 1.395 GB, free: 0.7383 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004479/0.9183, allocations: 0.5203 MB / 1.395 GB, free: 84 kB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005459/0.9188, allocations: 0.9164 MB / 1.396 GB, free: 15.03 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 9.103e-05/0.9189, allocations: 108.8 kB / 1.396 GB, free: 14.91 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.919, allocations: 11.98 kB / 1.396 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.9192, allocations: 8 kB / 1.396 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.9192, allocations: 23.67 kB / 1.396 GB, free: 14.87 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.9192, allocations: 4 kB / 1.396 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of sort global known variables: time 8.685e-05/0.9193, allocations: 131.9 kB / 1.396 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.00153/0.9208, allocations: 83.98 kB / 1.396 GB, free: 14.65 MB / 0.9011 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.0001305/0.921, allocations: 115.2 kB / 1.396 GB, free: 14.53 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003952/0.9214, allocations: 311.6 kB / 1.397 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.9214, allocations: 0 / 1.397 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.9215, allocations: 97.75 kB / 1.397 GB, free: 14.13 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.9218, allocations: 28.02 kB / 1.397 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006451/0.9224, allocations: 382.4 kB / 1.397 GB, free: 13.67 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003644/0.9228, allocations: 0.7766 MB / 1.398 GB, free: 12.87 MB / 0.9011 GB Notification: Performance of SimCode: time 2.4e-07/0.9228, allocations: 0 / 1.398 GB, free: 12.87 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat