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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9118/0.9118, allocations: 141.8 MB / 149.3 MB, free: 9.238 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 187.7 kB / 182.2 MB, free: 9.469 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.5 MB / 436.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000957/0.000957, allocations: 88.08 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001825/0.001825, allocations: 272.1 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.034e-05, allocations: 0 / 0.6766 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4185/0.4186, allocations: 82.78 MB / 0.7575 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1498/0.5685, allocations: 114.5 MB / 0.8693 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5688, allocations: 75.95 kB / 0.8694 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03115/0.6, allocations: 12.24 MB / 0.8813 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.366e-06/0.6, allocations: 0 / 0.8813 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.261e-05/0.6001, allocations: 19.94 kB / 0.8814 GB, free: 0.957 MB / 0.5417 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.00149/0.6016, allocations: 0.8722 MB / 0.8822 GB, free: 36 kB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.6016, allocations: 12.03 kB / 0.8822 GB, free: 24 kB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.6018, allocations: 83.02 kB / 0.8823 GB, free: 15.94 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007377/0.6025, allocations: 0.5313 MB / 0.8828 GB, free: 15.37 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.6026, allocations: 23.98 kB / 0.8828 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.05e-05/0.6026, allocations: 35.94 kB / 0.8829 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007078/0.6034, allocations: 390.6 kB / 0.8833 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000882/0.6042, allocations: 0.5247 MB / 0.8838 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.6043, allocations: 7.984 kB / 0.8838 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.6043, allocations: 0 / 0.8838 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.6044, allocations: 19.95 kB / 0.8838 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002872/0.6072, allocations: 1.972 MB / 0.8857 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.6079, allocations: 408.5 kB / 0.8861 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.6082, allocations: 209 kB / 0.8863 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.373e-05/0.6083, allocations: 4.438 kB / 0.8863 GB, free: 11.7 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004342/0.6087, allocations: 232.5 kB / 0.8865 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=50): time 2.945e-06/0.6087, allocations: 0 / 0.8865 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=50): time 0.0007258/0.6095, allocations: 404.1 kB / 0.8869 GB, free: 11.06 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.6096, allocations: 170.6 kB / 0.8871 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004255/0.61, allocations: 357.1 kB / 0.8874 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.6101, allocations: 25.7 kB / 0.8874 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.6103, allocations: 316.3 kB / 0.8878 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.6105, allocations: 161.6 kB / 0.8879 GB, free: 10 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.207e-05/0.6105, allocations: 0 / 0.8879 GB, free: 10 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.6107, allocations: 362.8 kB / 0.8883 GB, free: 9.637 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.6109, allocations: 149.1 kB / 0.8884 GB, free: 9.492 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.6112, allocations: 242.5 kB / 0.8886 GB, free: 9.219 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.6115, allocations: 170.1 kB / 0.8888 GB, free: 9.059 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.6115, allocations: 4 kB / 0.8888 GB, free: 9.055 MB / 0.5573 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007294/0.6123, allocations: 470.3 kB / 0.8892 GB, free: 8.586 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.6123, allocations: 29.7 kB / 0.8893 GB, free: 8.551 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.6123, allocations: 4 kB / 0.8893 GB, free: 8.547 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.6124, allocations: 11.89 kB / 0.8893 GB, free: 8.535 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005216/0.6129, allocations: 124 kB / 0.8894 GB, free: 8.414 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.6129, allocations: 7.938 kB / 0.8894 GB, free: 8.406 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003931/0.6133, allocations: 71.58 kB / 0.8895 GB, free: 8.336 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.6134, allocations: 20 kB / 0.8895 GB, free: 8.316 MB / 0.5573 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.0001422/0.6135, allocations: 113 kB / 0.8896 GB, free: 8.199 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000615/0.6141, allocations: 403.4 kB / 0.89 GB, free: 7.797 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.447e-05/0.6142, allocations: 59.3 kB / 0.89 GB, free: 7.738 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.6144, allocations: 65.19 kB / 0.8901 GB, free: 7.676 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.6144, allocations: 4 kB / 0.8901 GB, free: 7.672 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6144, allocations: 0 / 0.8901 GB, free: 7.672 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.6144, allocations: 3.984 kB / 0.8901 GB, free: 7.668 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.6159, allocations: 1.104 MB / 0.8912 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.6159, allocations: 3.953 kB / 0.8912 GB, free: 6.516 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/0.6164, allocations: 111.8 kB / 0.8913 GB, free: 6.406 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.6164, allocations: 0 / 0.8913 GB, free: 6.406 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.6164, allocations: 4 kB / 0.8913 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.6165, allocations: 7.984 kB / 0.8913 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6165, allocations: 0 / 0.8913 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009624/0.6174, allocations: 0.7018 MB / 0.892 GB, free: 5.68 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.6177, allocations: 188.3 kB / 0.8922 GB, free: 5.477 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.642e-05/0.6177, allocations: 0 / 0.8922 GB, free: 5.477 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003588/0.6181, allocations: 47.86 kB / 0.8922 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.6182, allocations: 36.39 kB / 0.8923 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.6182, allocations: 15.98 kB / 0.8923 GB, free: 5.379 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002833/0.6185, allocations: 271 kB / 0.8925 GB, free: 5.117 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6185, allocations: 0 / 0.8925 GB, free: 5.117 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004503/0.619, allocations: 135.5 kB / 0.8927 GB, free: 4.984 MB / 0.5573 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.001274/0.6203, allocations: 1.267 MB / 0.8939 GB, free: 3.688 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007206/0.621, allocations: 443.2 kB / 0.8943 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.621, allocations: 0 / 0.8943 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002991/0.6213, allocations: 198 kB / 0.8945 GB, free: 3.051 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.622, allocations: 115.7 kB / 0.8946 GB, free: 2.938 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.625, allocations: 1.346 MB / 0.8959 GB, free: 1.543 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.6255, allocations: 0.9096 MB / 0.8968 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002746/0.6258, allocations: 52.38 kB / 0.8969 GB, free: 0.5508 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002915/0.6261, allocations: 223.3 kB / 0.8971 GB, free: 340 kB / 0.5573 GB Notification: Performance of SimCode: time 2.91e-07/0.6261, allocations: 0 / 0.8971 GB, free: 340 kB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3954/1.021, allocations: 10.37 MB / 0.9072 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/1.022, allocations: 159.3 kB / 0.9074 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/3.369, allocations: 0 / 0.9074 GB, free: 126.9 MB / 0.5573 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)