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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001223/0.001223, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001235/0.001235, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.215/1.215, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.263/2.263, allocations: 437 MB / 0.7099 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.91 kB / 0.8686 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4669/0.4681, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00446/0.4726, allocations: 4.148 MB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001953/0.4746, allocations: 1.282 MB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000396/0.475, allocations: 31.81 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003059/0.4753, allocations: 99.2 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000352/0.4757, allocations: 138.9 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.4764, allocations: 389.1 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006813/0.4771, allocations: 0.8811 MB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.4776, allocations: 426.1 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.4778, allocations: 278.7 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.478, allocations: 306.3 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.766e-05/0.4781, allocations: 40 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.746e-05/0.4782, allocations: 40 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.4783, allocations: 127.4 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.4785, allocations: 342 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006481/0.4792, allocations: 0.995 MB / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.4792, allocations: 0 / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.61e-07/0.4792, allocations: 0 / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.4792, allocations: 4 kB / 1.026 GB, free: 9.27 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.001495/0.4807, allocations: 1.069 MB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.4808, allocations: 8.031 kB / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.434e-05/0.4809, allocations: 106.7 kB / 1.027 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.481, allocations: 87.91 kB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.4817, allocations: 0.5533 MB / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.4817, allocations: 41.69 kB / 1.028 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.058e-05/0.4818, allocations: 60.38 kB / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009435/0.4827, allocations: 0.6116 MB / 1.028 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.4828, allocations: 0 / 1.028 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.822e-05/0.4828, allocations: 20 kB / 1.028 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.4828, allocations: 16 kB / 1.028 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008831/0.4837, allocations: 461 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.4861, allocations: 2.016 MB / 1.031 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008265/0.4869, allocations: 442.1 kB / 1.031 GB, free: 3.594 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.4873, allocations: 250.5 kB / 1.032 GB, free: 3.348 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.4874, allocations: 4.438 kB / 1.032 GB, free: 3.344 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004917/0.4879, allocations: 261.3 kB / 1.032 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 1.753e-06/0.4879, allocations: 4 kB / 1.032 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001152/0.489, allocations: 0.5843 MB / 1.032 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.4891, allocations: 59.84 kB / 1.032 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.4895, allocations: 446 kB / 1.033 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.4895, allocations: 41.69 kB / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.4897, allocations: 325 kB / 1.033 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4898, allocations: 165.6 kB / 1.033 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.49, allocations: 94.16 kB / 1.033 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4901, allocations: 366.7 kB / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.4904, allocations: 165 kB / 1.034 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003835/0.4908, allocations: 257.8 kB / 1.034 GB, free: 0.5312 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007143/0.4915, allocations: 448 kB / 1.035 GB, free: 64 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4916, allocations: 0 / 1.035 GB, free: 64 kB / 0.7794 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009321/0.4925, allocations: 0.5663 MB / 1.035 GB, free: 15.48 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.4925, allocations: 36.05 kB / 1.035 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.4925, allocations: 0 / 1.035 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.4926, allocations: 4 kB / 1.035 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.493, allocations: 116.1 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.493, allocations: 7.938 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.4933, allocations: 59.5 kB / 1.035 GB, free: 15.26 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.4934, allocations: 23.98 kB / 1.035 GB, free: 15.23 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.0002034/0.4936, allocations: 205.7 kB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.4937, allocations: 63.28 kB / 1.036 GB, free: 14.96 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.4938, allocations: 65.58 kB / 1.036 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.4938, allocations: 4 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4938, allocations: 0 / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.4938, allocations: 0 / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.4953, allocations: 1.181 MB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4953, allocations: 0 / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.4957, allocations: 99.81 kB / 1.037 GB, free: 13.55 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.4957, allocations: 3.938 kB / 1.037 GB, free: 13.55 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.4958, allocations: 12 kB / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4958, allocations: 0 / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.4958, allocations: 4 kB / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.4969, allocations: 0.7602 MB / 1.038 GB, free: 12.76 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.4971, allocations: 168.3 kB / 1.038 GB, free: 12.57 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/0.4972, allocations: 12 kB / 1.038 GB, free: 12.56 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.4974, allocations: 27.97 kB / 1.038 GB, free: 12.54 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.628e-05/0.4975, allocations: 40.33 kB / 1.038 GB, free: 12.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.4976, allocations: 12 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002783/0.4979, allocations: 310.9 kB / 1.038 GB, free: 12.19 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4979, allocations: 0 / 1.038 GB, free: 12.19 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000362/0.4982, allocations: 143.4 kB / 1.038 GB, free: 12.05 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.001389/0.4996, allocations: 1.314 MB / 1.04 GB, free: 10.71 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007874/0.5004, allocations: 489.5 kB / 1.04 GB, free: 10.22 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.5004, allocations: 0 / 1.04 GB, free: 10.22 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.5008, allocations: 214.4 kB / 1.04 GB, free: 10.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.5015, allocations: 145.9 kB / 1.041 GB, free: 9.863 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006429/0.5079, allocations: 5.15 MB / 1.046 GB, free: 4.57 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.5083, allocations: 0.8824 MB / 1.046 GB, free: 3.66 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002338/0.5085, allocations: 60.59 kB / 1.046 GB, free: 3.602 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002657/0.5088, allocations: 219.4 kB / 1.047 GB, free: 3.387 MB / 0.795 GB Notification: Performance of SimCode: time 3.4e-07/0.5088, allocations: 0 / 1.047 GB, free: 3.387 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.628/2.137, allocations: 10.68 MB / 1.057 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/2.137, allocations: 201.9 kB / 1.057 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/4.071, allocations: 0 / 1.057 GB, free: 8.633 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