Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",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/BuildingSystems 2.0.0-master/package.mo): time 0.7327/0.7327, allocations: 141.8 MB / 149.1 MB, free: 14.74 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009845/0.0009845, allocations: 175.5 kB / 182 MB, free: 11.19 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.3 MB / 436.1 MB, free: 3.758 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009017/0.0009017, allocations: 98.88 kB / 0.507 GB, free: 18.51 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001752/0.001752, allocations: 273.7 kB / 0.5885 GB, free: 5.184 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4614/0.4632, allocations: 89.64 MB / 0.676 GB, free: 137.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.6387, allocations: 82.78 MB / 0.7568 GB, free: 85.64 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1375/0.7763, allocations: 115.8 MB / 0.8699 GB, free: 1.652 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.7766, allocations: 81.34 kB / 0.87 GB, free: 1.574 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.379/1.156, allocations: 17.43 MB / 0.887 GB, free: 110.5 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/1.156, allocations: 8.312 kB / 0.887 GB, free: 110.5 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/1.156, allocations: 96.81 kB / 0.8871 GB, free: 110.5 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009234/1.157, allocations: 0.5851 MB / 0.8877 GB, free: 110.1 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/1.157, allocations: 83.33 kB / 0.8878 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.15e-05/1.157, allocations: 31 kB / 0.8878 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007492/1.158, allocations: 339.4 kB / 0.8881 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/1.159, allocations: 0.5027 MB / 0.8886 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/1.159, allocations: 5.094 kB / 0.8886 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/1.159, allocations: 0.8438 kB / 0.8886 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.233e-05/1.159, allocations: 16.94 kB / 0.8887 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003935/1.163, allocations: 2.105 MB / 0.8907 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/1.164, allocations: 418.6 kB / 0.8911 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/1.164, allocations: 160.9 kB / 0.8913 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.096e-05/1.164, allocations: 13.41 kB / 0.8913 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004278/1.165, allocations: 222.7 kB / 0.8915 GB, free: 108 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=45): time 2.565e-06/1.165, allocations: 0.7188 kB / 0.8915 GB, free: 108 MB / 0.5419 GB Notification: Performance of matching and sorting (n=45): time 0.0008104/1.166, allocations: 385.8 kB / 0.8919 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/1.166, allocations: 190.7 kB / 0.892 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006922/1.166, allocations: 469.6 kB / 0.8925 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/1.167, allocations: 27.42 kB / 0.8925 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/1.167, allocations: 258.9 kB / 0.8928 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/1.167, allocations: 151.6 kB / 0.8929 GB, free: 107 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.516e-05/1.167, allocations: 0 / 0.8929 GB, free: 107 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.000117/1.167, allocations: 382 kB / 0.8933 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/1.167, allocations: 139.2 kB / 0.8934 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/1.168, allocations: 268.3 kB / 0.8937 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002916/1.168, allocations: 163.5 kB / 0.8938 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/1.168, allocations: 0.9375 kB / 0.8938 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008314/1.169, allocations: 474.5 kB / 0.8943 GB, free: 106 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000202/1.169, allocations: 0.9669 MB / 0.8952 GB, free: 105 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/1.169, allocations: 2.219 kB / 0.8952 GB, free: 105 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/1.169, allocations: 5.688 kB / 0.8952 GB, free: 105 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005904/1.17, allocations: 129.6 kB / 0.8953 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/1.17, allocations: 5 kB / 0.8953 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/1.17, allocations: 73.64 kB / 0.8954 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/1.17, allocations: 18.19 kB / 0.8954 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 6.232e-06/1.17, allocations: 3.25 kB / 0.8954 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006915/1.171, allocations: 374.3 kB / 0.8958 GB, free: 104.7 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/1.171, allocations: 7.156 kB / 0.8958 GB, free: 104.7 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/1.171, allocations: 5.812 kB / 0.8958 GB, free: 104.7 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/1.171, allocations: 116.9 kB / 0.8959 GB, free: 104.7 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/1.171, allocations: 8.844 kB / 0.8959 GB, free: 104.7 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/1.172, allocations: 63.88 kB / 0.896 GB, free: 104.6 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/1.172, allocations: 18.06 kB / 0.896 GB, free: 104.6 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001407/1.172, allocations: 118.2 kB / 0.8961 GB, free: 104.5 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/1.172, allocations: 68.69 kB / 0.8962 GB, free: 104.5 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000153/1.172, allocations: 72.14 kB / 0.8962 GB, free: 104.4 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/1.172, allocations: 9.219 kB / 0.8963 GB, free: 104.4 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/1.172, allocations: 0 / 0.8963 GB, free: 104.4 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/1.172, allocations: 4.703 kB / 0.8963 GB, free: 104.4 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007436/1.173, allocations: 0.5749 MB / 0.8968 GB, free: 104 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/1.173, allocations: 0.7812 kB / 0.8968 GB, free: 104 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000545/1.174, allocations: 105.4 kB / 0.8969 GB, free: 103.9 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/1.174, allocations: 0 / 0.8969 GB, free: 103.9 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/1.174, allocations: 8 kB / 0.8969 GB, free: 103.9 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/1.174, allocations: 7.922 kB / 0.8969 GB, free: 103.9 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/1.174, allocations: 3.938 kB / 0.8969 GB, free: 103.9 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000853/1.175, allocations: 0.6225 MB / 0.8976 GB, free: 103.2 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00106/1.176, allocations: 1.205 MB / 0.8987 GB, free: 102 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/1.176, allocations: 192.1 kB / 0.8989 GB, free: 101.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-05/1.176, allocations: 11.91 kB / 0.8989 GB, free: 101.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005209/1.177, allocations: 63.94 kB / 0.899 GB, free: 101.7 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/1.177, allocations: 27.95 kB / 0.899 GB, free: 101.7 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/1.177, allocations: 19.98 kB / 0.899 GB, free: 101.7 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0003748/1.177, allocations: 359.2 kB / 0.8994 GB, free: 101.4 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.001821/1.179, allocations: 223.1 kB / 0.8996 GB, free: 101.1 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001694/1.179, allocations: 108.6 kB / 0.8997 GB, free: 101 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0009508/1.18, allocations: 0.651 MB / 0.9003 GB, free: 100.4 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.18, allocations: 0 / 0.9003 GB, free: 100.4 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002441/1.18, allocations: 187.8 kB / 0.9005 GB, free: 100.2 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007975/1.181, allocations: 165.6 kB / 0.9007 GB, free: 100 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/1.183, allocations: 0.8927 MB / 0.9015 GB, free: 99.1 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005198/1.184, allocations: 0.9929 MB / 0.9025 GB, free: 98.07 MB / 0.5419 GB Notification: Performance of SimCode: time 2.5e-07/1.184, allocations: 0 / 0.9025 GB, free: 98.07 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)