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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008688/0.0008688, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.004789/0.004789, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.187/1.187, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.415/2.415, allocations: 462.7 MB / 0.7364 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003056, allocations: 15.31 kB / 0.9029 GB, free: 36.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2579, allocations: 159.6 MB / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.0041/0.2621, allocations: 3.726 MB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002223/0.2643, allocations: 1.282 MB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004389/0.2648, allocations: 23.88 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.2651, allocations: 95.2 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004069/0.2655, allocations: 146.8 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008098/0.2663, allocations: 386.1 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008482/0.2672, allocations: 0.8734 MB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005773/0.2678, allocations: 418.1 kB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.2681, allocations: 238.7 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.2684, allocations: 254.4 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.152e-05/0.2685, allocations: 20 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.701e-05/0.2685, allocations: 24 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.761e-05/0.2686, allocations: 103.4 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.2689, allocations: 327.8 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007557/0.2697, allocations: 0.9575 MB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2697, allocations: 8 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.981e-05/0.2697, allocations: 3.938 kB / 1.067 GB, free: 11.9 MB / 0.8262 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.001614/0.2713, allocations: 0.9524 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.2714, allocations: 11.97 kB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.2715, allocations: 102.7 kB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.2716, allocations: 80 kB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007759/0.2724, allocations: 0.5494 MB / 1.069 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.2725, allocations: 45.69 kB / 1.069 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.914e-05/0.2726, allocations: 60.36 kB / 1.069 GB, free: 10 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.2737, allocations: 0.6194 MB / 1.07 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.2737, allocations: 3.906 kB / 1.07 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.894e-05/0.2738, allocations: 28 kB / 1.07 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2738, allocations: 16 kB / 1.07 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009755/0.2748, allocations: 469 kB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002674/0.2774, allocations: 2.012 MB / 1.072 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008858/0.2783, allocations: 454.2 kB / 1.073 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/0.2788, allocations: 254 kB / 1.073 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.2788, allocations: 4.438 kB / 1.073 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005476/0.2794, allocations: 269.1 kB / 1.073 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 1.853e-06/0.2794, allocations: 0 / 1.073 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.001255/0.2807, allocations: 0.5961 MB / 1.074 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.2807, allocations: 67.77 kB / 1.074 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004624/0.2812, allocations: 446.1 kB / 1.074 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.2812, allocations: 33.7 kB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.2815, allocations: 328.2 kB / 1.075 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.2816, allocations: 165.6 kB / 1.075 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.516e-05/0.2817, allocations: 53.69 kB / 1.075 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2818, allocations: 370.8 kB / 1.075 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.2822, allocations: 173 kB / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004299/0.2826, allocations: 249.8 kB / 1.076 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008149/0.2835, allocations: 464 kB / 1.076 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2835, allocations: 4 kB / 1.076 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001029/0.2845, allocations: 0.5702 MB / 1.077 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.2846, allocations: 33.7 kB / 1.077 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2846, allocations: 256 / 1.077 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.2846, allocations: 11.98 kB / 1.077 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004699/0.2851, allocations: 115.8 kB / 1.077 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.2851, allocations: 7.984 kB / 1.077 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.2854, allocations: 71.5 kB / 1.077 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.09e-05/0.2855, allocations: 16 kB / 1.077 GB, free: 1.938 MB / 0.8262 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.0002393/0.2857, allocations: 206.7 kB / 1.077 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.034e-05/0.2858, allocations: 71.2 kB / 1.077 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.286, allocations: 65.58 kB / 1.077 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.286, allocations: 4 kB / 1.077 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.286, allocations: 0 / 1.077 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.286, allocations: 3.984 kB / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.2876, allocations: 1.201 MB / 1.078 GB, free: 340 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2876, allocations: 0 / 1.078 GB, free: 340 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004523/0.2881, allocations: 95.89 kB / 1.078 GB, free: 244 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.2881, allocations: 4 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.978e-05/0.2882, allocations: 11.98 kB / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2882, allocations: 0 / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2882, allocations: 0 / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.2895, allocations: 0.7796 MB / 1.079 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.2897, allocations: 168.4 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.2898, allocations: 12 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.2901, allocations: 35.91 kB / 1.079 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.652e-05/0.2902, allocations: 36.39 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.2902, allocations: 15.98 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003052/0.2905, allocations: 306.9 kB / 1.08 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2905, allocations: 0 / 1.08 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004088/0.2909, allocations: 143.4 kB / 1.08 GB, free: 14.7 MB / 0.8419 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.001547/0.2925, allocations: 1.336 MB / 1.081 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009007/0.2934, allocations: 493.2 kB / 1.082 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2934, allocations: 0 / 1.082 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004135/0.2938, allocations: 222.3 kB / 1.082 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007361/0.2946, allocations: 146.3 kB / 1.082 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007278/0.3019, allocations: 5.239 MB / 1.087 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3023, allocations: 0.894 MB / 1.088 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002794/0.3026, allocations: 64.58 kB / 1.088 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.3029, allocations: 215.4 kB / 1.088 GB, free: 5.902 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.3029, allocations: 4 kB / 1.088 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.3249, allocations: 10.52 MB / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/0.3252, allocations: 213.4 kB / 1.099 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.023, allocations: 4.922 kB / 1.099 GB, free: 11.33 MB / 0.8575 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=50 --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