Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_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 8.0.1-maint.8.0.x/package.mo): time 1.296/1.296, allocations: 285.5 MB / 292.8 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009057/0.0009057, allocations: 181.2 kB / 361.1 MB, free: 7.148 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9841/0.9841, allocations: 205.1 MB / 0.6195 GB, free: 10.36 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000731/0.000731, allocations: 95.5 kB / 0.7326 GB, free: 44.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1712/0.172, allocations: 121.4 MB / 0.8512 GB, free: 2.934 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.5648, allocations: 115.3 MB / 0.9638 GB, free: 78.17 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.7176, allocations: 164 MB / 1.124 GB, free: 7.961 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.7178, allocations: 96.91 kB / 1.124 GB, free: 7.867 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.03793/0.7558, allocations: 16.54 MB / 1.14 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.7558, allocations: 16 kB / 1.14 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007839/0.7566, allocations: 87.61 kB / 1.14 GB, free: 7.148 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.757, allocations: 266.9 kB / 1.141 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.757, allocations: 8 kB / 1.141 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.7571, allocations: 15.98 kB / 1.141 GB, free: 6.824 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003559/0.7574, allocations: 232.8 kB / 1.141 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.7579, allocations: 339.7 kB / 1.141 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.7579, allocations: 1.688 kB / 1.141 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.7579, allocations: 4 kB / 1.141 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.248e-05/0.758, allocations: 24.42 kB / 1.141 GB, free: 6.215 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.7596, allocations: 1.47 MB / 1.143 GB, free: 4.605 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.7598, allocations: 198.5 kB / 1.143 GB, free: 4.402 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.76, allocations: 109.1 kB / 1.143 GB, free: 4.293 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.7601, allocations: 96.98 kB / 1.143 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.7602, allocations: 38.56 kB / 1.143 GB, free: 4.133 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.7602, allocations: 0 / 1.143 GB, free: 4.133 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19): time 0.001229/0.7614, allocations: 0.7269 MB / 1.144 GB, free: 3.352 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.7614, allocations: 59.41 kB / 1.144 GB, free: 3.281 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.7616, allocations: 149.5 kB / 1.144 GB, free: 3.125 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.7616, allocations: 25.7 kB / 1.144 GB, free: 3.094 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.173e-05/0.7617, allocations: 160.1 kB / 1.144 GB, free: 2.934 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.7617, allocations: 67 kB / 1.144 GB, free: 2.867 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.7618, allocations: 0 / 1.144 GB, free: 2.867 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.7618, allocations: 330.8 kB / 1.144 GB, free: 2.535 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.762, allocations: 104 kB / 1.145 GB, free: 2.434 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.7622, allocations: 173.1 kB / 1.145 GB, free: 2.246 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.7625, allocations: 155.8 kB / 1.145 GB, free: 2.094 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.7625, allocations: 4 kB / 1.145 GB, free: 2.09 MB / 0.7448 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007753/0.7633, allocations: 405.9 kB / 1.145 GB, free: 1.684 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.7633, allocations: 7.938 kB / 1.145 GB, free: 1.676 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.7633, allocations: 5.812 kB / 1.145 GB, free: 1.672 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003451/0.7637, allocations: 96.95 kB / 1.145 GB, free: 1.574 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.7639, allocations: 51.91 kB / 1.145 GB, free: 1.523 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.7655, allocations: 1.647 MB / 1.147 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.7657, allocations: 15.11 kB / 1.147 GB, free: 15.74 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.7658, allocations: 8 kB / 1.147 GB, free: 15.73 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.698e-05/0.7658, allocations: 105 kB / 1.147 GB, free: 15.62 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.483e-05/0.7659, allocations: 15.81 kB / 1.147 GB, free: 15.61 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005157/0.7664, allocations: 313.3 kB / 1.147 GB, free: 15.31 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.7664, allocations: 7.906 kB / 1.147 GB, free: 15.3 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.7664, allocations: 0 / 1.147 GB, free: 15.3 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.7665, allocations: 0 / 1.147 GB, free: 15.3 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008646/0.7673, allocations: 0.6723 MB / 1.148 GB, free: 14.58 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.7673, allocations: 0 / 1.148 GB, free: 14.58 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002995/0.7676, allocations: 51.97 kB / 1.148 GB, free: 14.53 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-05/0.7677, allocations: 4 kB / 1.148 GB, free: 14.52 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.7677, allocations: 11.83 kB / 1.148 GB, free: 14.51 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.7677, allocations: 4 kB / 1.148 GB, free: 14.51 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7677, allocations: 0 / 1.148 GB, free: 14.51 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006283/0.7684, allocations: 0.5495 MB / 1.149 GB, free: 13.93 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009114/0.7693, allocations: 1.086 MB / 1.15 GB, free: 12.81 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.7694, allocations: 119.9 kB / 1.15 GB, free: 12.68 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.7694, allocations: 0 / 1.15 GB, free: 12.68 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.7696, allocations: 7.984 kB / 1.15 GB, free: 12.67 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.7697, allocations: 16.05 kB / 1.15 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.7697, allocations: 4 kB / 1.15 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of sort global known variables: time 9.878e-05/0.7698, allocations: 132.8 kB / 1.15 GB, free: 12.52 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0009312/0.7707, allocations: 79.84 kB / 1.15 GB, free: 12.44 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.0001983/0.7709, allocations: 126.9 kB / 1.15 GB, free: 12.3 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0006228/0.7716, allocations: 394.5 kB / 1.151 GB, free: 11.91 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7716, allocations: 0 / 1.151 GB, free: 11.91 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.7717, allocations: 127.8 kB / 1.151 GB, free: 11.79 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.772, allocations: 19.98 kB / 1.151 GB, free: 11.77 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000966/0.773, allocations: 488.3 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/0.7734, allocations: 0.8083 MB / 1.152 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of SimCode: time 2.81e-07/0.7734, allocations: 0 / 1.152 GB, free: 10.44 MB / 0.7605 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)