Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002087/0.002087, allocations: 177.2 kB / 22.76 MB, free: 1.656 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.571/1.571, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.355/3.355, allocations: 429.5 MB / 0.6729 GB, free: 4.031 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 3.938 kB / 0.8774 GB, free: 6.738 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.17e-05/3.322e-05, allocations: 5.719 kB / 0.8774 GB, free: 6.734 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006916/0.00695, allocations: 3.982 MB / 0.8813 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.003162/0.01011, allocations: 1.343 MB / 0.8826 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004361/0.01055, allocations: 27.81 kB / 0.8826 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0003852/0.01093, allocations: 130.6 kB / 0.8828 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0004126/0.01135, allocations: 193.2 kB / 0.8829 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009184/0.01226, allocations: 412.7 kB / 0.8833 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.001221/0.01348, allocations: 0.9746 MB / 0.8843 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005754/0.01406, allocations: 286.6 kB / 0.8846 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007323/0.01479, allocations: 0.5043 MB / 0.885 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003829/0.01518, allocations: 239.2 kB / 0.8853 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.01531, allocations: 88 kB / 0.8854 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.01546, allocations: 92 kB / 0.8854 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.01566, allocations: 183.4 kB / 0.8856 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.01598, allocations: 247.4 kB / 0.8859 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.01761, allocations: 1.098 MB / 0.8869 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.01761, allocations: 0 / 0.8869 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.062e-06/0.01762, allocations: 0 / 0.8869 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.366e-05/0.01763, allocations: 0 / 0.8869 GB, free: 12.95 MB / 0.8542 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.002384/0.02001, allocations: 1.28 MB / 0.8882 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.02006, allocations: 8.031 kB / 0.8882 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.02031, allocations: 140.4 kB / 0.8883 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.02131, allocations: 0.5293 MB / 0.8888 GB, free: 10.92 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.344e-05/0.02137, allocations: 45.69 kB / 0.8889 GB, free: 10.88 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.02149, allocations: 68.3 kB / 0.8889 GB, free: 10.81 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.02276, allocations: 0.6945 MB / 0.8896 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.02278, allocations: 192 / 0.8896 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.02285, allocations: 28.36 kB / 0.8897 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.02287, allocations: 19.94 kB / 0.8897 GB, free: 10.03 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.02387, allocations: 429 kB / 0.8901 GB, free: 9.605 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003787/0.02766, allocations: 2.186 MB / 0.8922 GB, free: 7.363 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.02867, allocations: 423.4 kB / 0.8926 GB, free: 6.934 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.02913, allocations: 233 kB / 0.8928 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.02918, allocations: 8.5 kB / 0.8929 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006043/0.02979, allocations: 267.9 kB / 0.8931 GB, free: 6.422 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.02979, allocations: 0 / 0.8931 GB, free: 6.422 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49): time 0.001396/0.03119, allocations: 0.5749 MB / 0.8937 GB, free: 5.84 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.03125, allocations: 67.78 kB / 0.8937 GB, free: 5.762 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.03247, allocations: 0.5931 MB / 0.8943 GB, free: 5.152 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.03251, allocations: 33.7 kB / 0.8943 GB, free: 5.113 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004016/0.03291, allocations: 419.5 kB / 0.8947 GB, free: 4.699 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.03311, allocations: 190.5 kB / 0.8949 GB, free: 4.512 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.03333, allocations: 123.9 kB / 0.895 GB, free: 4.383 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0003881/0.03371, allocations: 0.5899 MB / 0.8956 GB, free: 3.781 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.0341, allocations: 179 kB / 0.8958 GB, free: 3.602 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.03464, allocations: 313.9 kB / 0.8961 GB, free: 3.25 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008927/0.03553, allocations: 488.7 kB / 0.8966 GB, free: 2.73 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.03553, allocations: 0 / 0.8966 GB, free: 2.73 MB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001163/0.0367, allocations: 0.602 MB / 0.8971 GB, free: 2.109 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.383e-05/0.03675, allocations: 36.2 kB / 0.8972 GB, free: 2.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.03676, allocations: 3.938 kB / 0.8972 GB, free: 2.066 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.03678, allocations: 4 kB / 0.8972 GB, free: 2.062 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/0.03729, allocations: 111.9 kB / 0.8973 GB, free: 1.953 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.03731, allocations: 15.88 kB / 0.8973 GB, free: 1.938 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.03761, allocations: 47.72 kB / 0.8974 GB, free: 1.891 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.03765, allocations: 20 kB / 0.8974 GB, free: 1.871 MB / 0.8542 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 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$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.0003356/0.03799, allocations: 258 kB / 0.8976 GB, free: 1.609 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.0381, allocations: 75.62 kB / 0.8977 GB, free: 1.535 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001919/0.03829, allocations: 65.44 kB / 0.8978 GB, free: 1.473 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.0383, allocations: 4 kB / 0.8978 GB, free: 1.469 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.03831, allocations: 3.938 kB / 0.8978 GB, free: 1.465 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.03832, allocations: 7.922 kB / 0.8978 GB, free: 1.457 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.04035, allocations: 1.175 MB / 0.8989 GB, free: 248 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.04036, allocations: 0 / 0.8989 GB, free: 248 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.04082, allocations: 95.89 kB / 0.899 GB, free: 152 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.04083, allocations: 3.984 kB / 0.899 GB, free: 148 kB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.04087, allocations: 15.94 kB / 0.899 GB, free: 132 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.04087, allocations: 0 / 0.899 GB, free: 132 kB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.04087, allocations: 3.938 kB / 0.899 GB, free: 128 kB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.04236, allocations: 0.8104 MB / 0.8998 GB, free: 15.29 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.04255, allocations: 95.52 kB / 0.8999 GB, free: 15.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.428e-05/0.04261, allocations: 15.94 kB / 0.8999 GB, free: 15.18 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.04286, allocations: 15.98 kB / 0.8999 GB, free: 15.17 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.04297, allocations: 44.42 kB / 0.9 GB, free: 15.12 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.043, allocations: 12 kB / 0.9 GB, free: 15.11 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.00047/0.04347, allocations: 375 kB / 0.9004 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of sort global known variables: time 8e-08/0.04348, allocations: 0 / 0.9004 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004929/0.04397, allocations: 147.5 kB / 0.9005 GB, free: 14.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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.000182/0.04415, allocations: 122.1 kB / 0.9006 GB, free: 14.47 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001249/0.0454, allocations: 0.5042 MB / 0.9011 GB, free: 13.95 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.0454, allocations: 4 kB / 0.9011 GB, free: 13.94 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004407/0.04584, allocations: 227.4 kB / 0.9013 GB, free: 13.72 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008116/0.04665, allocations: 156.3 kB / 0.9015 GB, free: 13.57 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.04925, allocations: 1.251 MB / 0.9027 GB, free: 12.28 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.0496, allocations: 300.7 kB / 0.903 GB, free: 11.96 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002506/0.04985, allocations: 56.53 kB / 0.903 GB, free: 11.91 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.04998, allocations: 48.5 kB / 0.9031 GB, free: 11.86 MB / 0.8698 GB Notification: Performance of SimCode: time 8.01e-07/0.04998, allocations: 0 / 0.9031 GB, free: 11.86 MB / 0.8698 GB Notification: Performance of Templates: time 0.01357/0.06355, allocations: 5.811 MB / 0.9088 GB, free: 6.188 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.689082622993737]