Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.837/1.837, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001435/0.001435, allocations: 192.6 kB / 487 MB, free: 5.387 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.154/1.154, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008259/0.0008257, allocations: 86.81 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4378/0.4386, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.6301, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5861/1.216, allocations: 175.6 MB / 1.377 GB, free: 0.9531 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/1.217, allocations: 95.38 kB / 1.377 GB, free: 0.9023 MB / 0.8073 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.04861/1.265, allocations: 21.25 MB / 1.398 GB, free: 15 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/1.265, allocations: 8 kB / 1.398 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008109/1.266, allocations: 95.59 kB / 1.398 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/1.267, allocations: 255.8 kB / 1.398 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/1.267, allocations: 8 kB / 1.398 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/1.267, allocations: 12 kB / 1.398 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003661/1.267, allocations: 241.2 kB / 1.398 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004263/1.267, allocations: 336.3 kB / 1.399 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/1.267, allocations: 4 kB / 1.399 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/1.268, allocations: 0 / 1.399 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.124e-05/1.268, allocations: 24.36 kB / 1.399 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/1.269, allocations: 1.474 MB / 1.4 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/1.269, allocations: 199.2 kB / 1.4 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/1.269, allocations: 114.6 kB / 1.4 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/1.27, allocations: 92.25 kB / 1.4 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/1.27, allocations: 34.56 kB / 1.4 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/1.27, allocations: 0 / 1.4 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001225/1.271, allocations: 0.7315 MB / 1.401 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/1.271, allocations: 59.39 kB / 1.401 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/1.271, allocations: 166.5 kB / 1.401 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/1.271, allocations: 25.7 kB / 1.401 GB, free: 11.4 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.604e-05/1.271, allocations: 153.8 kB / 1.402 GB, free: 11.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.778e-05/1.271, allocations: 66.31 kB / 1.402 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/1.271, allocations: 0 / 1.402 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.22e-05/1.271, allocations: 329.3 kB / 1.402 GB, free: 10.87 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/1.271, allocations: 109.5 kB / 1.402 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/1.272, allocations: 157.7 kB / 1.402 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/1.272, allocations: 166.1 kB / 1.402 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/1.272, allocations: 0 / 1.402 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007436/1.273, allocations: 416.8 kB / 1.403 GB, free: 10.22 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/1.273, allocations: 8.188 kB / 1.403 GB, free: 10.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/1.273, allocations: 4 kB / 1.403 GB, free: 10.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003423/1.273, allocations: 88.72 kB / 1.403 GB, free: 10.13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/1.273, allocations: 51.41 kB / 1.403 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/1.275, allocations: 1.646 MB / 1.404 GB, free: 8.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/1.275, allocations: 11.98 kB / 1.404 GB, free: 8.457 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/1.275, allocations: 11.06 kB / 1.405 GB, free: 8.449 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 8.679e-05/1.275, allocations: 108.9 kB / 1.405 GB, free: 8.336 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.567e-05/1.275, allocations: 19.81 kB / 1.405 GB, free: 8.316 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005029/1.276, allocations: 302.6 kB / 1.405 GB, free: 8.098 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/1.276, allocations: 7.906 kB / 1.405 GB, free: 8.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/1.276, allocations: 7.984 kB / 1.405 GB, free: 8.082 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.276, allocations: 0 / 1.405 GB, free: 8.082 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008216/1.277, allocations: 0.669 MB / 1.406 GB, free: 7.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/1.277, allocations: 0 / 1.406 GB, free: 7.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/1.277, allocations: 56.09 kB / 1.406 GB, free: 7.426 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/1.277, allocations: 0 / 1.406 GB, free: 7.426 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/1.277, allocations: 7.906 kB / 1.406 GB, free: 7.418 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/1.277, allocations: 4.062 kB / 1.406 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.277, allocations: 3.984 kB / 1.406 GB, free: 7.41 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006097/1.278, allocations: 0.5534 MB / 1.406 GB, free: 6.949 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000852/1.279, allocations: 1.078 MB / 1.407 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/1.279, allocations: 119.8 kB / 1.407 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.027e-05/1.279, allocations: 4.062 kB / 1.407 GB, free: 5.883 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/1.279, allocations: 7.984 kB / 1.407 GB, free: 5.875 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/1.279, allocations: 19.05 kB / 1.407 GB, free: 5.859 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/1.279, allocations: 4 kB / 1.407 GB, free: 5.855 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.013e-05/1.279, allocations: 134.2 kB / 1.408 GB, free: 5.742 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008884/1.28, allocations: 71.17 kB / 1.408 GB, free: 5.676 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.0001549/1.28, allocations: 111.2 kB / 1.408 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005633/1.281, allocations: 398.4 kB / 1.408 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/1.281, allocations: 4 kB / 1.408 GB, free: 5.234 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001826/1.281, allocations: 113.4 kB / 1.408 GB, free: 5.156 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/1.281, allocations: 32.91 kB / 1.408 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009475/1.282, allocations: 498.4 kB / 1.409 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003922/1.283, allocations: 0.807 MB / 1.409 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.283, allocations: 0 / 1.409 GB, free: 3.836 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat