Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.792/1.792, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.000977/0.000977, allocations: 188.1 kB / 490.8 MB, free: 1.969 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.109/1.109, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0008282/0.0008282, allocations: 91.02 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4034/0.4043, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.5763, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5009/1.077, allocations: 176.4 MB / 1.384 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/1.078, allocations: 97.66 kB / 1.384 GB, free: 17.06 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.06022/1.138, allocations: 21.25 MB / 1.405 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/1.138, allocations: 11.98 kB / 1.405 GB, free: 21.85 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007837/1.139, allocations: 91.61 kB / 1.405 GB, free: 21.76 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/1.139, allocations: 258.6 kB / 1.405 GB, free: 21.48 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-06/1.139, allocations: 11.94 kB / 1.405 GB, free: 21.47 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/1.139, allocations: 12 kB / 1.405 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003203/1.139, allocations: 235.3 kB / 1.405 GB, free: 21.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003851/1.14, allocations: 344.6 kB / 1.406 GB, free: 21.03 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/1.14, allocations: 0 / 1.406 GB, free: 21.03 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/1.14, allocations: 0 / 1.406 GB, free: 21.03 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/1.14, allocations: 20.42 kB / 1.406 GB, free: 21.01 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/1.141, allocations: 1.481 MB / 1.407 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/1.141, allocations: 196.5 kB / 1.407 GB, free: 19.41 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/1.142, allocations: 113.4 kB / 1.407 GB, free: 19.33 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/1.142, allocations: 89.09 kB / 1.408 GB, free: 19.22 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/1.142, allocations: 34 kB / 1.408 GB, free: 19.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.263e-06/1.142, allocations: 0 / 1.408 GB, free: 19.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001103/1.143, allocations: 0.739 MB / 1.408 GB, free: 18.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.414e-05/1.143, allocations: 51.41 kB / 1.408 GB, free: 18.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/1.143, allocations: 161.4 kB / 1.409 GB, free: 18.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/1.143, allocations: 25.7 kB / 1.409 GB, free: 18.28 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.668e-05/1.143, allocations: 153.5 kB / 1.409 GB, free: 18.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/1.143, allocations: 65.69 kB / 1.409 GB, free: 18.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/1.143, allocations: 4 kB / 1.409 GB, free: 18.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.159e-05/1.143, allocations: 326.1 kB / 1.409 GB, free: 17.75 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/1.143, allocations: 111.8 kB / 1.409 GB, free: 17.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/1.144, allocations: 161.8 kB / 1.409 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/1.144, allocations: 159 kB / 1.409 GB, free: 17.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/1.144, allocations: 4 kB / 1.409 GB, free: 17.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006839/1.145, allocations: 410.7 kB / 1.41 GB, free: 17.11 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/1.145, allocations: 11.94 kB / 1.41 GB, free: 17.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/1.145, allocations: 0 / 1.41 GB, free: 17.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003281/1.145, allocations: 92.66 kB / 1.41 GB, free: 17.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/1.145, allocations: 50.97 kB / 1.41 GB, free: 16.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/1.147, allocations: 1.642 MB / 1.412 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/1.147, allocations: 12.08 kB / 1.412 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/1.147, allocations: 15.25 kB / 1.412 GB, free: 15.33 MB / 0.8386 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 7.955e-05/1.147, allocations: 112.9 kB / 1.412 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/1.147, allocations: 15.81 kB / 1.412 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000462/1.147, allocations: 309.3 kB / 1.412 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/1.147, allocations: 7.984 kB / 1.412 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/1.147, allocations: 0 / 1.412 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/1.147, allocations: 7.906 kB / 1.412 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007579/1.148, allocations: 0.6656 MB / 1.413 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.148, allocations: 0 / 1.413 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/1.148, allocations: 47.97 kB / 1.413 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/1.148, allocations: 3.938 kB / 1.413 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/1.149, allocations: 8.062 kB / 1.413 GB, free: 14.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/1.149, allocations: 3.984 kB / 1.413 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.149, allocations: 11.84 kB / 1.413 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005922/1.149, allocations: 0.5492 MB / 1.413 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009215/1.15, allocations: 1.081 MB / 1.414 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/1.15, allocations: 115.9 kB / 1.414 GB, free: 12.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.757e-05/1.15, allocations: 4 kB / 1.414 GB, free: 12.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/1.15, allocations: 7.984 kB / 1.415 GB, free: 12.76 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/1.15, allocations: 10.92 kB / 1.415 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/1.15, allocations: 4 kB / 1.415 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.237e-05/1.151, allocations: 131.2 kB / 1.415 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009082/1.151, allocations: 79.27 kB / 1.415 GB, free: 12.57 MB / 0.8386 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.0001561/1.152, allocations: 122.8 kB / 1.415 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005667/1.152, allocations: 398.2 kB / 1.415 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.152, allocations: 0 / 1.415 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000138/1.152, allocations: 113.2 kB / 1.415 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/1.153, allocations: 30.03 kB / 1.415 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000959/1.154, allocations: 0.4931 MB / 1.416 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/1.154, allocations: 0.798 MB / 1.417 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.154, allocations: 4 kB / 1.417 GB, free: 10.73 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat