Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json 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/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009028/0.0009028, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 187.2 kB / 16.92 MB, free: 6.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.728/2.728, allocations: 437.8 MB / 0.7128 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004211/0.0004211, allocations: 8 kB / 0.8735 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.803/0.8034, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.0049/0.8084, allocations: 3.728 MB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003098/0.8115, allocations: 1.274 MB / 1.029 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008863/0.8125, allocations: 19.94 kB / 1.029 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005016/0.813, allocations: 87.22 kB / 1.029 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0008239/0.8138, allocations: 158.8 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.8149, allocations: 382.8 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001001/0.816, allocations: 0.881 MB / 1.03 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006336/0.8166, allocations: 422.1 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002791/0.8169, allocations: 230.7 kB / 1.031 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.8172, allocations: 258.5 kB / 1.031 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.8172, allocations: 24 kB / 1.031 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.763e-05/0.8173, allocations: 27.94 kB / 1.031 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.8174, allocations: 103.4 kB / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002594/0.8177, allocations: 327.8 kB / 1.031 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006818/0.8184, allocations: 0.8083 MB / 1.032 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8184, allocations: 0 / 1.032 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.124e-06/0.8184, allocations: 0 / 1.032 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.8184, allocations: 0 / 1.032 GB, free: 7.145 MB / 0.7794 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.001643/0.82, allocations: 0.9464 MB / 1.033 GB, free: 6.145 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.8201, allocations: 15.98 kB / 1.033 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.8202, allocations: 95.89 kB / 1.033 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007957/0.8211, allocations: 0.5533 MB / 1.034 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/0.8211, allocations: 41.69 kB / 1.034 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.523e-05/0.8212, allocations: 60.38 kB / 1.034 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.8223, allocations: 0.6195 MB / 1.034 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.8223, allocations: 0 / 1.034 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.8224, allocations: 20 kB / 1.034 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.8224, allocations: 16 kB / 1.034 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000969/0.8234, allocations: 469 kB / 1.035 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002802/0.8262, allocations: 2.02 MB / 1.037 GB, free: 2.109 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009071/0.8271, allocations: 462.1 kB / 1.037 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/0.8276, allocations: 254.5 kB / 1.038 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.8276, allocations: 12.38 kB / 1.038 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005852/0.8282, allocations: 269.3 kB / 1.038 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 1.943e-06/0.8282, allocations: 0 / 1.038 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.00131/0.8295, allocations: 0.5999 MB / 1.038 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.8296, allocations: 55.84 kB / 1.038 GB, free: 452 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004989/0.8301, allocations: 446 kB / 1.039 GB, free: 15.99 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.8302, allocations: 37.7 kB / 1.039 GB, free: 15.95 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.8304, allocations: 320.9 kB / 1.039 GB, free: 15.64 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.8305, allocations: 165.5 kB / 1.039 GB, free: 15.47 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.8306, allocations: 57.69 kB / 1.039 GB, free: 15.41 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.8308, allocations: 362.8 kB / 1.04 GB, free: 15.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003897/0.8312, allocations: 173 kB / 1.04 GB, free: 14.88 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.8316, allocations: 257.8 kB / 1.04 GB, free: 14.6 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008023/0.8324, allocations: 460 kB / 1.041 GB, free: 14.12 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.8324, allocations: 0 / 1.041 GB, free: 14.12 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001051/0.8335, allocations: 0.5741 MB / 1.041 GB, free: 13.54 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.8335, allocations: 37.64 kB / 1.041 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.8335, allocations: 0 / 1.041 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.8336, allocations: 4 kB / 1.041 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.8341, allocations: 119.8 kB / 1.041 GB, free: 13.37 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.8341, allocations: 4 kB / 1.041 GB, free: 13.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003612/0.8344, allocations: 71.75 kB / 1.041 GB, free: 13.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.874e-05/0.8345, allocations: 23.98 kB / 1.041 GB, free: 13.27 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002643/0.8348, allocations: 206.3 kB / 1.042 GB, free: 13.06 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.022e-05/0.8348, allocations: 59.28 kB / 1.042 GB, free: 13 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.835, allocations: 69.58 kB / 1.042 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.835, allocations: 4 kB / 1.042 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.835, allocations: 0 / 1.042 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.835, allocations: 0 / 1.042 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.8368, allocations: 1.189 MB / 1.043 GB, free: 11.68 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.8368, allocations: 0 / 1.043 GB, free: 11.68 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004536/0.8372, allocations: 99.88 kB / 1.043 GB, free: 11.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.8373, allocations: 4 kB / 1.043 GB, free: 11.58 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.069e-05/0.8373, allocations: 8 kB / 1.043 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.944e-06/0.8373, allocations: 4 kB / 1.043 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.8373, allocations: 7.938 kB / 1.043 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.8387, allocations: 0.7874 MB / 1.044 GB, free: 10.76 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.8389, allocations: 172.3 kB / 1.044 GB, free: 10.57 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.001e-05/0.8389, allocations: 8 kB / 1.044 GB, free: 10.57 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.8392, allocations: 31.97 kB / 1.044 GB, free: 10.54 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.751e-05/0.8393, allocations: 36.39 kB / 1.044 GB, free: 10.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.8394, allocations: 12 kB / 1.044 GB, free: 10.49 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000323/0.8397, allocations: 314.9 kB / 1.044 GB, free: 10.18 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8397, allocations: 0 / 1.044 GB, free: 10.18 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004465/0.8402, allocations: 143.4 kB / 1.045 GB, free: 10.04 MB / 0.795 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.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001437/0.8403, allocations: 107.2 kB / 1.045 GB, free: 9.93 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009167/0.8412, allocations: 0.4892 MB / 1.045 GB, free: 9.422 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8413, allocations: 0 / 1.045 GB, free: 9.422 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004118/0.8417, allocations: 222.9 kB / 1.045 GB, free: 9.207 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007963/0.8425, allocations: 156.5 kB / 1.045 GB, free: 9.055 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.8452, allocations: 1.711 MB / 1.047 GB, free: 7.305 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.8457, allocations: 0.8902 MB / 1.048 GB, free: 6.391 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.8459, allocations: 43.44 kB / 1.048 GB, free: 6.352 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.8459, allocations: 3.938 kB / 1.048 GB, free: 6.348 MB / 0.795 GB Notification: Performance of Templates: time 0.0109/0.8568, allocations: 7.485 MB / 1.055 GB, free: 14.89 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches