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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001435/0.001435, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 193.9 kB / 16.14 MB, free: 6.719 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.542/1.542, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.793/2.793, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.89 kB / 0.8686 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6737/0.6757, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.007046/0.6828, allocations: 4.148 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004199/0.6871, allocations: 1.289 MB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001176/0.6883, allocations: 27.88 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006547/0.6889, allocations: 91.2 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0009347/0.69, allocations: 142.9 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.6912, allocations: 383.1 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001171/0.6924, allocations: 0.8889 MB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006573/0.6931, allocations: 422.1 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.6934, allocations: 278.7 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/0.6938, allocations: 310.3 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.506e-05/0.6939, allocations: 40 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.081e-05/0.694, allocations: 40 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.6941, allocations: 127.5 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003328/0.6944, allocations: 342 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009371/0.6954, allocations: 0.9869 MB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.6954, allocations: 0 / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.32e-07/0.6954, allocations: 0 / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.026e-06/0.6954, allocations: 4 kB / 1.026 GB, free: 9.262 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.001972/0.6974, allocations: 1.077 MB / 1.027 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.6975, allocations: 11.98 kB / 1.027 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.6976, allocations: 87.91 kB / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008643/0.6985, allocations: 0.5494 MB / 1.028 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.649e-05/0.6985, allocations: 45.69 kB / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.687e-05/0.6986, allocations: 60.38 kB / 1.028 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.6998, allocations: 0.6117 MB / 1.028 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.6998, allocations: 0 / 1.028 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/0.6999, allocations: 24 kB / 1.028 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.6999, allocations: 16 kB / 1.028 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.7009, allocations: 461 kB / 1.029 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/0.704, allocations: 2.008 MB / 1.031 GB, free: 4.129 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009733/0.705, allocations: 446.2 kB / 1.031 GB, free: 3.688 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.7055, allocations: 250.5 kB / 1.031 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.7055, allocations: 8.438 kB / 1.031 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006478/0.7062, allocations: 261.3 kB / 1.032 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 4.248e-06/0.7062, allocations: 3.984 kB / 1.032 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001371/0.7076, allocations: 0.5804 MB / 1.032 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.7076, allocations: 59.84 kB / 1.032 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/0.7082, allocations: 449.9 kB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.7082, allocations: 37.7 kB / 1.033 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.7085, allocations: 321 kB / 1.033 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.7087, allocations: 165.6 kB / 1.033 GB, free: 1.531 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.7088, allocations: 94.16 kB / 1.033 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.709, allocations: 370.8 kB / 1.034 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004071/0.7094, allocations: 161 kB / 1.034 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.7099, allocations: 253.8 kB / 1.034 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.7108, allocations: 456 kB / 1.034 GB, free: 156 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.7108, allocations: 0 / 1.034 GB, free: 156 kB / 0.7794 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001103/0.7119, allocations: 0.5624 MB / 1.035 GB, free: 15.57 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.739e-05/0.712, allocations: 43.97 kB / 1.035 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.712, allocations: 0 / 1.035 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.712, allocations: 4 kB / 1.035 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004929/0.7125, allocations: 111.9 kB / 1.035 GB, free: 15.41 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.7125, allocations: 7.938 kB / 1.035 GB, free: 15.41 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.7129, allocations: 67.75 kB / 1.035 GB, free: 15.34 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.7129, allocations: 16 kB / 1.035 GB, free: 15.32 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.0002663/0.7132, allocations: 201.8 kB / 1.035 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.419e-05/0.7133, allocations: 59.28 kB / 1.035 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.7134, allocations: 65.58 kB / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.7134, allocations: 4 kB / 1.036 GB, free: 14.99 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.7135, allocations: 7.938 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.7135, allocations: 7.984 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.7153, allocations: 1.174 MB / 1.037 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.7153, allocations: 0 / 1.037 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.7158, allocations: 95.83 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.7158, allocations: 4 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.58e-05/0.7159, allocations: 15.98 kB / 1.037 GB, free: 13.63 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.7159, allocations: 7.938 kB / 1.037 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7159, allocations: 0 / 1.037 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.7173, allocations: 0.7601 MB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.7175, allocations: 168.3 kB / 1.038 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.713e-05/0.7176, allocations: 12 kB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.7179, allocations: 27.97 kB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.431e-05/0.718, allocations: 32.39 kB / 1.038 GB, free: 12.59 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/0.718, allocations: 20.11 kB / 1.038 GB, free: 12.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003775/0.7184, allocations: 306.9 kB / 1.038 GB, free: 12.28 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7184, allocations: 4 kB / 1.038 GB, free: 12.27 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004527/0.7189, allocations: 143.4 kB / 1.038 GB, free: 12.13 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.0001447/0.719, allocations: 119.1 kB / 1.038 GB, free: 12.01 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009888/0.72, allocations: 481.5 kB / 1.039 GB, free: 11.53 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7201, allocations: 4 kB / 1.039 GB, free: 11.52 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000449/0.7205, allocations: 218.3 kB / 1.039 GB, free: 11.31 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007907/0.7213, allocations: 147.5 kB / 1.039 GB, free: 11.17 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.7242, allocations: 1.601 MB / 1.041 GB, free: 9.535 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.7248, allocations: 0.8941 MB / 1.042 GB, free: 8.617 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002867/0.7251, allocations: 64.58 kB / 1.042 GB, free: 8.551 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.7252, allocations: 35.44 kB / 1.042 GB, free: 8.52 MB / 0.795 GB Notification: Performance of SimCode: time 3.61e-07/0.7252, allocations: 0 / 1.042 GB, free: 8.52 MB / 0.795 GB Notification: Performance of Templates: time 0.01172/0.7369, allocations: 5.578 MB / 1.047 GB, free: 3.016 MB / 0.795 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches