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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_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.001503/0.001503, allocations: 112.5 kB / 15.73 MB, free: 68 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.001428/0.001428, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.417/2.417, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 71.89 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.243, allocations: 151.6 MB / 1.166 GB, free: 7.289 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005052/0.2481, allocations: 4.122 MB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001921/0.2501, allocations: 1.321 MB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.2503, allocations: 19.94 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.2506, allocations: 130.7 kB / 1.172 GB, free: 1.652 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.2509, allocations: 182.4 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000758/0.2517, allocations: 415.3 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0008572/0.2526, allocations: 0.9632 MB / 1.173 GB, free: 108 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005894/0.2532, allocations: 462.4 kB / 1.174 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003131/0.2535, allocations: 326.8 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.2538, allocations: 334.3 kB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.2539, allocations: 92 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.2541, allocations: 92 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.2542, allocations: 179.4 kB / 1.175 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003174/0.2545, allocations: 386 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009366/0.2555, allocations: 1.066 MB / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.2555, allocations: 0 / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.866e-06/0.2555, allocations: 4 kB / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.2555, allocations: 3.938 kB / 1.176 GB, free: 13.17 MB / 0.9356 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.001701/0.2572, allocations: 1.1 MB / 1.177 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.2572, allocations: 8.031 kB / 1.177 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.2574, allocations: 102.7 kB / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.2575, allocations: 88.42 kB / 1.177 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008139/0.2583, allocations: 0.5732 MB / 1.178 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.2584, allocations: 41.69 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-05/0.2584, allocations: 60.38 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.2595, allocations: 0.6116 MB / 1.178 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.2595, allocations: 7.891 kB / 1.178 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.358e-05/0.2596, allocations: 23.94 kB / 1.179 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.2596, allocations: 16 kB / 1.179 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009603/0.2606, allocations: 461 kB / 1.179 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.2632, allocations: 1.989 MB / 1.181 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009199/0.2641, allocations: 445.6 kB / 1.181 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004498/0.2646, allocations: 242.1 kB / 1.182 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.2646, allocations: 12.44 kB / 1.182 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005195/0.2652, allocations: 261.2 kB / 1.182 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 3.597e-06/0.2652, allocations: 3.984 kB / 1.182 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001264/0.2664, allocations: 0.5847 MB / 1.182 GB, free: 6.348 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.2665, allocations: 63.81 kB / 1.182 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004749/0.267, allocations: 446 kB / 1.183 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.267, allocations: 33.7 kB / 1.183 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.2673, allocations: 329.6 kB / 1.183 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.2674, allocations: 166.5 kB / 1.183 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.2676, allocations: 102.2 kB / 1.183 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2677, allocations: 366.8 kB / 1.184 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003828/0.2681, allocations: 161 kB / 1.184 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.2686, allocations: 249.8 kB / 1.184 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008122/0.2694, allocations: 456 kB / 1.185 GB, free: 3.918 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.2694, allocations: 4 kB / 1.185 GB, free: 3.914 MB / 0.9356 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001025/0.2704, allocations: 0.5665 MB / 1.185 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.2705, allocations: 33.7 kB / 1.185 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.2705, allocations: 4 kB / 1.185 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2705, allocations: 4 kB / 1.185 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000463/0.271, allocations: 111.8 kB / 1.185 GB, free: 3.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.271, allocations: 7.984 kB / 1.185 GB, free: 3.172 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.2713, allocations: 63.84 kB / 1.185 GB, free: 3.109 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.2713, allocations: 24 kB / 1.185 GB, free: 3.086 MB / 0.9356 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.000241/0.2716, allocations: 205.7 kB / 1.186 GB, free: 2.875 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.2717, allocations: 59.56 kB / 1.186 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.2718, allocations: 65.58 kB / 1.186 GB, free: 2.754 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2718, allocations: 7.938 kB / 1.186 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2718, allocations: 0 / 1.186 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.2718, allocations: 3.984 kB / 1.186 GB, free: 2.742 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.2735, allocations: 1.182 MB / 1.187 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2735, allocations: 0 / 1.187 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.274, allocations: 91.89 kB / 1.187 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.274, allocations: 4 kB / 1.187 GB, free: 1.414 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.274, allocations: 15.98 kB / 1.187 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.274, allocations: 4 kB / 1.187 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.274, allocations: 4 kB / 1.187 GB, free: 1.391 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.2753, allocations: 0.7615 MB / 1.188 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.2755, allocations: 172.6 kB / 1.188 GB, free: 432 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.021e-05/0.2756, allocations: 15.94 kB / 1.188 GB, free: 416 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.2759, allocations: 31.97 kB / 1.188 GB, free: 384 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.88e-05/0.276, allocations: 32.39 kB / 1.188 GB, free: 352 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/0.276, allocations: 12 kB / 1.188 GB, free: 340 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003198/0.2763, allocations: 310.9 kB / 1.188 GB, free: 32 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2763, allocations: 0 / 1.188 GB, free: 32 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003926/0.2767, allocations: 143.7 kB / 1.188 GB, free: 15.89 MB / 0.9512 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.001594/0.2783, allocations: 1.317 MB / 1.19 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008734/0.2792, allocations: 485.1 kB / 1.19 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2792, allocations: 0 / 1.19 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.2797, allocations: 218.4 kB / 1.19 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000695/0.2804, allocations: 161.2 kB / 1.191 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006723/0.2871, allocations: 4.805 MB / 1.195 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.2876, allocations: 0.8897 MB / 1.196 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000216/0.2878, allocations: 60.58 kB / 1.196 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.2881, allocations: 223.3 kB / 1.196 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.2881, allocations: 4 kB / 1.196 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.795/2.083, allocations: 11.31 MB / 1.207 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.57/23.65, allocations: 18.52 kB / 1.207 GB, free: 12.41 MB / 0.9669 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > 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