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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004524/0.004524, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.001354/0.001354, allocations: 195.9 kB / 16.68 MB, free: 5.969 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.424/2.424, allocations: 482.6 MB / 0.7551 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 67.88 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.253, allocations: 162.3 MB / 1.242 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00484/0.2579, allocations: 4.143 MB / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00186/0.2597, allocations: 1.313 MB / 1.247 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/0.26, allocations: 19.94 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.2603, allocations: 126.7 kB / 1.247 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.2606, allocations: 182.4 kB / 1.247 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007099/0.2613, allocations: 418.1 kB / 1.248 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0008602/0.2622, allocations: 0.9632 MB / 1.249 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005576/0.2627, allocations: 454.4 kB / 1.249 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.263, allocations: 318.8 kB / 1.25 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003239/0.2634, allocations: 342.3 kB / 1.25 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.2635, allocations: 92 kB / 1.25 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.2636, allocations: 88 kB / 1.25 GB, free: 488 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.2637, allocations: 175.5 kB / 1.25 GB, free: 312 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003222/0.2641, allocations: 402 kB / 1.251 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009132/0.265, allocations: 1.058 MB / 1.252 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.265, allocations: 4 kB / 1.252 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.022e-06/0.265, allocations: 0 / 1.252 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.265, allocations: 0 / 1.252 GB, free: 14.84 MB / 0.9825 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.00166/0.2667, allocations: 1.1 MB / 1.253 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.2667, allocations: 12.03 kB / 1.253 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.2668, allocations: 102.7 kB / 1.253 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.267, allocations: 96.36 kB / 1.253 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00078/0.2677, allocations: 0.5693 MB / 1.253 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.2678, allocations: 53.62 kB / 1.254 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.214e-05/0.2679, allocations: 56.38 kB / 1.254 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009911/0.2689, allocations: 0.6038 MB / 1.254 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.2689, allocations: 7.953 kB / 1.254 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.269, allocations: 24 kB / 1.254 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.269, allocations: 20 kB / 1.254 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009422/0.2699, allocations: 460.9 kB / 1.255 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.2725, allocations: 1.997 MB / 1.257 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000879/0.2734, allocations: 438.1 kB / 1.257 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.2738, allocations: 242.6 kB / 1.257 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.2739, allocations: 8.438 kB / 1.257 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004972/0.2744, allocations: 261.2 kB / 1.257 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=49): time 1.663e-06/0.2744, allocations: 0 / 1.257 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49): time 0.001212/0.2756, allocations: 0.5847 MB / 1.258 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.2756, allocations: 59.83 kB / 1.258 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/0.2761, allocations: 438.1 kB / 1.259 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.116e-05/0.2761, allocations: 37.7 kB / 1.259 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.2764, allocations: 337.5 kB / 1.259 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.2765, allocations: 174.5 kB / 1.259 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.2767, allocations: 90.25 kB / 1.259 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.2768, allocations: 366.8 kB / 1.26 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.2772, allocations: 165 kB / 1.26 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004239/0.2776, allocations: 253.8 kB / 1.26 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007913/0.2784, allocations: 452 kB / 1.26 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2784, allocations: 0 / 1.26 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009849/0.2794, allocations: 0.5665 MB / 1.261 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.2795, allocations: 37.69 kB / 1.261 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2795, allocations: 0 / 1.261 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.2795, allocations: 8 kB / 1.261 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.28, allocations: 111.8 kB / 1.261 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.28, allocations: 4.25 kB / 1.261 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.2803, allocations: 71.53 kB / 1.261 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.2803, allocations: 16 kB / 1.261 GB, free: 4.754 MB / 0.9825 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.0002203/0.2805, allocations: 205.7 kB / 1.261 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.156e-05/0.2806, allocations: 59.61 kB / 1.261 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.2807, allocations: 65.58 kB / 1.261 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2807, allocations: 8 kB / 1.261 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2807, allocations: 4 kB / 1.261 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2808, allocations: 3.938 kB / 1.261 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.2824, allocations: 1.178 MB / 1.263 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.2824, allocations: 3.984 kB / 1.263 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004407/0.2828, allocations: 91.89 kB / 1.263 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2828, allocations: 4 kB / 1.263 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.2829, allocations: 16 kB / 1.263 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/0.2829, allocations: 7.984 kB / 1.263 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2829, allocations: 0 / 1.263 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.2842, allocations: 0.7616 MB / 1.263 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.2844, allocations: 180.6 kB / 1.264 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.2844, allocations: 8 kB / 1.264 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.2847, allocations: 23.97 kB / 1.264 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.171e-05/0.2848, allocations: 40.33 kB / 1.264 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.2848, allocations: 12 kB / 1.264 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003185/0.2851, allocations: 310.9 kB / 1.264 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2852, allocations: 0 / 1.264 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003691/0.2855, allocations: 143.6 kB / 1.264 GB, free: 1.555 MB / 0.9825 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.001539/0.2871, allocations: 1.324 MB / 1.265 GB, free: 208 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008711/0.288, allocations: 481.1 kB / 1.266 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.288, allocations: 4 kB / 1.266 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003963/0.2884, allocations: 214.9 kB / 1.266 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.289, allocations: 155.6 kB / 1.266 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006579/0.2956, allocations: 4.81 MB / 1.271 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.2961, allocations: 0.8899 MB / 1.272 GB, free: 9.488 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002142/0.2963, allocations: 60.59 kB / 1.272 GB, free: 9.43 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.2966, allocations: 223.4 kB / 1.272 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of SimCode: time 1.894e-06/0.2966, allocations: 0 / 1.272 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.778/4.075, allocations: 11.32 MB / 1.283 GB, free: 14.07 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.33/22.41, allocations: 18.17 kB / 1.283 GB, free: 14.05 MB / 1.014 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches