Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",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.7061/0.7061, allocations: 141.8 MB / 149.1 MB, free: 13.11 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.001087/0.001087, allocations: 193.7 kB / 181.9 MB, free: 9.793 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.315/1.315, allocations: 221.4 MB / 436 MB, free: 2.18 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.0009946/0.0009945, allocations: 94.72 kB / 0.507 GB, free: 10.98 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001915/0.001915, allocations: 279.2 kB / 0.5884 GB, free: 7.801 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.197/0.199, allocations: 89.64 MB / 0.676 GB, free: 14.07 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4656/0.6646, allocations: 82.77 MB / 0.7568 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.7924, allocations: 114.5 MB / 0.8686 GB, free: 24.35 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.7928, allocations: 81.06 kB / 0.8687 GB, free: 24.27 MB / 0.5575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.03145/0.8243, allocations: 12.92 MB / 0.8813 GB, free: 11.33 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.8243, allocations: 8 kB / 0.8813 GB, free: 11.32 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002085/0.8246, allocations: 83.06 kB / 0.8814 GB, free: 11.24 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008477/0.8254, allocations: 0.529 MB / 0.8819 GB, free: 10.67 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.8255, allocations: 23.94 kB / 0.8819 GB, free: 10.64 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.965e-05/0.8256, allocations: 39.91 kB / 0.8819 GB, free: 10.61 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007611/0.8263, allocations: 394.6 kB / 0.8823 GB, free: 10.22 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008229/0.8272, allocations: 0.5172 MB / 0.8828 GB, free: 9.676 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.8272, allocations: 4 kB / 0.8828 GB, free: 9.672 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.255e-05/0.8273, allocations: 3.938 kB / 0.8828 GB, free: 9.668 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.8273, allocations: 16 kB / 0.8828 GB, free: 9.652 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.8305, allocations: 1.991 MB / 0.8848 GB, free: 7.609 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006325/0.8311, allocations: 311.6 kB / 0.8851 GB, free: 7.301 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003351/0.8315, allocations: 206.6 kB / 0.8853 GB, free: 7.094 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.8316, allocations: 4.438 kB / 0.8853 GB, free: 7.09 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.8319, allocations: 224.6 kB / 0.8855 GB, free: 6.859 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=50): time 4.609e-06/0.8319, allocations: 0 / 0.8855 GB, free: 6.859 MB / 0.5575 GB Notification: Performance of matching and sorting (n=50): time 0.0007228/0.8327, allocations: 391.3 kB / 0.8859 GB, free: 6.469 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.8327, allocations: 166.7 kB / 0.886 GB, free: 6.27 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004216/0.8332, allocations: 349 kB / 0.8864 GB, free: 5.926 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.8332, allocations: 29.7 kB / 0.8864 GB, free: 5.891 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.8334, allocations: 252.3 kB / 0.8866 GB, free: 5.637 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.8335, allocations: 157.7 kB / 0.8868 GB, free: 5.48 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/0.8336, allocations: 0 / 0.8868 GB, free: 5.48 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.8337, allocations: 366.7 kB / 0.8871 GB, free: 5.113 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002574/0.834, allocations: 149.2 kB / 0.8873 GB, free: 4.969 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003245/0.8343, allocations: 251.1 kB / 0.8875 GB, free: 4.688 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.8346, allocations: 169.5 kB / 0.8877 GB, free: 4.523 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.8346, allocations: 0 / 0.8877 GB, free: 4.523 MB / 0.5575 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006476/0.8353, allocations: 459.8 kB / 0.8881 GB, free: 4.07 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.8353, allocations: 8 kB / 0.8881 GB, free: 4.062 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.8353, allocations: 0 / 0.8881 GB, free: 4.062 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.8353, allocations: 4 kB / 0.8881 GB, free: 4.059 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.8359, allocations: 128 kB / 0.8882 GB, free: 3.934 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.8359, allocations: 4 kB / 0.8883 GB, free: 3.93 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000452/0.8363, allocations: 79.55 kB / 0.8883 GB, free: 3.852 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.165e-05/0.8364, allocations: 16 kB / 0.8883 GB, free: 3.836 MB / 0.5575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0001187/0.8365, allocations: 124.8 kB / 0.8885 GB, free: 3.707 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.273e-05/0.8366, allocations: 55.34 kB / 0.8885 GB, free: 3.652 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.8367, allocations: 53.2 kB / 0.8886 GB, free: 3.602 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.852e-06/0.8367, allocations: 7.906 kB / 0.8886 GB, free: 3.594 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.8367, allocations: 0 / 0.8886 GB, free: 3.594 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.8368, allocations: 7.984 kB / 0.8886 GB, free: 3.586 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.8381, allocations: 1.107 MB / 0.8897 GB, free: 2.434 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.8381, allocations: 4 kB / 0.8897 GB, free: 2.43 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005274/0.8386, allocations: 111.9 kB / 0.8898 GB, free: 2.32 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.8387, allocations: 0 / 0.8898 GB, free: 2.32 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.8387, allocations: 11.91 kB / 0.8898 GB, free: 2.309 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.8387, allocations: 0 / 0.8898 GB, free: 2.309 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.8387, allocations: 0 / 0.8898 GB, free: 2.309 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008694/0.8396, allocations: 0.7166 MB / 0.8905 GB, free: 1.574 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001124/0.8407, allocations: 1.298 MB / 0.8917 GB, free: 264 kB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.8409, allocations: 184.3 kB / 0.8919 GB, free: 60 kB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.899e-05/0.841, allocations: 7.906 kB / 0.8919 GB, free: 52 kB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.8415, allocations: 47.95 kB / 0.892 GB, free: 4 kB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.8417, allocations: 32.38 kB / 0.892 GB, free: 15.97 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.792e-05/0.8417, allocations: 20 kB / 0.892 GB, free: 15.95 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0003554/0.8421, allocations: 263.2 kB / 0.8923 GB, free: 15.7 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.001183/0.8433, allocations: 139.4 kB / 0.8924 GB, free: 15.56 MB / 0.5732 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0002205/0.8435, allocations: 115.2 kB / 0.8925 GB, free: 15.43 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.0008113/0.8443, allocations: 409.2 kB / 0.8929 GB, free: 15.02 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.8444, allocations: 0 / 0.8929 GB, free: 15.02 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0003403/0.8447, allocations: 202 kB / 0.8931 GB, free: 14.83 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007117/0.8454, allocations: 110.5 kB / 0.8932 GB, free: 14.73 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.8486, allocations: 1.274 MB / 0.8945 GB, free: 13.42 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007262/0.8494, allocations: 0.9596 MB / 0.8954 GB, free: 12.43 MB / 0.5732 GB Notification: Performance of SimCode: time 6.22e-07/0.8494, allocations: 0 / 0.8954 GB, free: 12.43 MB / 0.5732 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)