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.001166/0.001166, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001119/0.001119, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.13/1.13, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.119/2.119, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.91 kB / 0.8688 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4546/0.4558, allocations: 151.6 MB / 1.017 GB, free: 2.695 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005175/0.461, allocations: 4.15 MB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002081/0.4631, allocations: 1.278 MB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003519/0.4635, allocations: 23.88 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.4638, allocations: 95.2 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.4641, allocations: 150.8 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.4648, allocations: 383.2 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007299/0.4655, allocations: 0.9631 MB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005007/0.466, allocations: 458.1 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.4663, allocations: 330.7 kB / 1.025 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.4666, allocations: 334.4 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.805e-05/0.4667, allocations: 92 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.883e-05/0.4668, allocations: 88 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.4669, allocations: 179.4 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000254/0.4672, allocations: 394 kB / 1.026 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006684/0.4679, allocations: 1.03 MB / 1.027 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.4679, allocations: 0 / 1.027 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.143e-06/0.4679, allocations: 0 / 1.027 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.325e-05/0.4679, allocations: 4 kB / 1.027 GB, free: 8.742 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.001467/0.4694, allocations: 1.077 MB / 1.028 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.4694, allocations: 8.031 kB / 1.028 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.247e-05/0.4695, allocations: 102.7 kB / 1.028 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.4696, allocations: 87.84 kB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/0.4703, allocations: 0.5495 MB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.4703, allocations: 41.69 kB / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-05/0.4704, allocations: 60.38 kB / 1.028 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009161/0.4713, allocations: 0.6076 MB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.4713, allocations: 4 kB / 1.029 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.609e-05/0.4714, allocations: 28 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.4714, allocations: 12 kB / 1.029 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008108/0.4722, allocations: 461 kB / 1.03 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.4745, allocations: 2.012 MB / 1.031 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/0.4753, allocations: 442.1 kB / 1.032 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.4757, allocations: 254.5 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.4757, allocations: 4.438 kB / 1.032 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004841/0.4762, allocations: 261.2 kB / 1.032 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 1.833e-06/0.4762, allocations: 0 / 1.032 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001082/0.4773, allocations: 0.5882 MB / 1.033 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.4773, allocations: 55.84 kB / 1.033 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.4777, allocations: 446 kB / 1.033 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.4778, allocations: 37.7 kB / 1.033 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.4779, allocations: 329 kB / 1.034 GB, free: 1.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4781, allocations: 161.7 kB / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.4782, allocations: 98.14 kB / 1.034 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.4783, allocations: 366.8 kB / 1.034 GB, free: 452 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.4786, allocations: 169 kB / 1.035 GB, free: 284 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.4792, allocations: 249.8 kB / 1.035 GB, free: 8 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.4805, allocations: 452 kB / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4805, allocations: 4 kB / 1.035 GB, free: 15.53 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001527/0.482, allocations: 0.5662 MB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.4821, allocations: 29.7 kB / 1.036 GB, free: 14.92 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.4821, allocations: 4 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.4821, allocations: 4 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004453/0.4826, allocations: 107.9 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4826, allocations: 11.94 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003214/0.4829, allocations: 63.75 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.483, allocations: 20 kB / 1.036 GB, free: 14.71 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.000205/0.4832, allocations: 210.5 kB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.4832, allocations: 59.28 kB / 1.036 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.4833, allocations: 61.59 kB / 1.036 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4834, allocations: 12 kB / 1.036 GB, free: 14.37 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.4834, allocations: 0 / 1.036 GB, free: 14.37 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4834, allocations: 3.984 kB / 1.036 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.4849, allocations: 1.17 MB / 1.037 GB, free: 13.13 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.4849, allocations: 0 / 1.037 GB, free: 13.13 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/0.4853, allocations: 99.81 kB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.4853, allocations: 11.94 kB / 1.038 GB, free: 13.02 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.4854, allocations: 12 kB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.4854, allocations: 0 / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4854, allocations: 0 / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.4865, allocations: 0.764 MB / 1.038 GB, free: 12.23 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.4867, allocations: 172.3 kB / 1.039 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.4868, allocations: 11.98 kB / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002834/0.4871, allocations: 27.98 kB / 1.039 GB, free: 12 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.332e-05/0.4871, allocations: 36.38 kB / 1.039 GB, free: 11.97 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.4872, allocations: 12 kB / 1.039 GB, free: 11.96 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002714/0.4875, allocations: 310.8 kB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4875, allocations: 4 kB / 1.039 GB, free: 11.65 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003828/0.4878, allocations: 147.4 kB / 1.039 GB, free: 11.51 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.001347/0.4892, allocations: 1.317 MB / 1.04 GB, free: 10.16 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009235/0.4901, allocations: 497 kB / 1.041 GB, free: 9.668 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4901, allocations: 4.5 kB / 1.041 GB, free: 9.664 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000362/0.4905, allocations: 218.4 kB / 1.041 GB, free: 9.449 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006845/0.4912, allocations: 157.4 kB / 1.041 GB, free: 9.305 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006322/0.4975, allocations: 5.139 MB / 1.046 GB, free: 4.02 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.4979, allocations: 0.886 MB / 1.047 GB, free: 3.105 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002445/0.4981, allocations: 60.59 kB / 1.047 GB, free: 3.047 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002524/0.4984, allocations: 219.4 kB / 1.047 GB, free: 2.832 MB / 0.795 GB Notification: Performance of SimCode: time 2.9e-07/0.4984, allocations: 0 / 1.047 GB, free: 2.832 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.079/3.578, allocations: 10.95 MB / 1.058 GB, free: 8.09 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004971/3.578, allocations: 205.3 kB / 1.058 GB, free: 7.832 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/6.283, allocations: 0 / 1.058 GB, free: 7.832 MB / 0.8106 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=50 --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