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.001218/0.001218, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001232/0.001232, allocations: 195 kB / 16.14 MB, free: 6.648 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.188/1.188, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.37/2.37, allocations: 461.8 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 64.02 kB / 0.8985 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2172, allocations: 157.4 MB / 1.052 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004703/0.2219, allocations: 4.152 MB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002036/0.2239, allocations: 1.289 MB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.2244, allocations: 27.88 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.2247, allocations: 91.2 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003602/0.2251, allocations: 146.8 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007254/0.2258, allocations: 386.8 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007675/0.2266, allocations: 0.8773 MB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005173/0.2271, allocations: 422.1 kB / 1.059 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003008/0.2274, allocations: 278.7 kB / 1.06 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.2277, allocations: 310.3 kB / 1.06 GB, free: 248 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.016e-05/0.2278, allocations: 40 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.888e-05/0.2279, allocations: 40 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.377e-05/0.2279, allocations: 127.5 kB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00025/0.2282, allocations: 342.1 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006649/0.2289, allocations: 0.989 MB / 1.061 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.2289, allocations: 4 kB / 1.061 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 6.41e-07/0.2289, allocations: 0 / 1.061 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.2289, allocations: 0 / 1.061 GB, free: 14.71 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.001496/0.2304, allocations: 1.077 MB / 1.062 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2304, allocations: 8.031 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.935e-05/0.2306, allocations: 106.6 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.2307, allocations: 87.91 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006792/0.2314, allocations: 0.5495 MB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.2314, allocations: 45.69 kB / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.689e-05/0.2315, allocations: 56.38 kB / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009473/0.2324, allocations: 0.6077 MB / 1.064 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.2325, allocations: 4 kB / 1.064 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.2325, allocations: 24 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.2325, allocations: 16 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008956/0.2334, allocations: 457 kB / 1.064 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.2359, allocations: 2.016 MB / 1.066 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008233/0.2367, allocations: 441.5 kB / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000403/0.2371, allocations: 242.1 kB / 1.067 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.2371, allocations: 4.438 kB / 1.067 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004927/0.2376, allocations: 257.3 kB / 1.067 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 3.026e-06/0.2377, allocations: 3.938 kB / 1.067 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.001142/0.2388, allocations: 0.5921 MB / 1.068 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.2388, allocations: 59.84 kB / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004122/0.2393, allocations: 446 kB / 1.068 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.2393, allocations: 45.62 kB / 1.068 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.2395, allocations: 320.3 kB / 1.069 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.2396, allocations: 169.6 kB / 1.069 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.2398, allocations: 94.16 kB / 1.069 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2399, allocations: 362.8 kB / 1.069 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003578/0.2402, allocations: 173 kB / 1.069 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.2406, allocations: 253.8 kB / 1.07 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007166/0.2414, allocations: 448 kB / 1.07 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2414, allocations: 0 / 1.07 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009265/0.2423, allocations: 0.5662 MB / 1.071 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.2423, allocations: 29.7 kB / 1.071 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2424, allocations: 4 kB / 1.071 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2424, allocations: 4 kB / 1.071 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.2428, allocations: 115.8 kB / 1.071 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.2428, allocations: 8.234 kB / 1.071 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.2431, allocations: 63.5 kB / 1.071 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.2432, allocations: 23.98 kB / 1.071 GB, free: 4.668 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.0002091/0.2434, allocations: 205.7 kB / 1.071 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.2435, allocations: 59.28 kB / 1.071 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.2436, allocations: 69.58 kB / 1.071 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2436, allocations: 4 kB / 1.071 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2436, allocations: 0 / 1.071 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2436, allocations: 0 / 1.071 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.2451, allocations: 1.177 MB / 1.072 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2451, allocations: 0 / 1.072 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004389/0.2456, allocations: 103.8 kB / 1.072 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2456, allocations: 0 / 1.072 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.2456, allocations: 12 kB / 1.072 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2456, allocations: 0 / 1.072 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2457, allocations: 3.984 kB / 1.072 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.2468, allocations: 0.7602 MB / 1.073 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.247, allocations: 172.3 kB / 1.073 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.2471, allocations: 4 kB / 1.073 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.2474, allocations: 35.91 kB / 1.073 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-05/0.2474, allocations: 32.39 kB / 1.073 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.2475, allocations: 12 kB / 1.073 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002963/0.2478, allocations: 314.9 kB / 1.074 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.362e-06/0.2478, allocations: 0 / 1.074 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003763/0.2482, allocations: 151.4 kB / 1.074 GB, free: 1.477 MB / 0.8262 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.001429/0.2496, allocations: 1.317 MB / 1.075 GB, free: 132 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008005/0.2504, allocations: 485.6 kB / 1.076 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2504, allocations: 4 kB / 1.076 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003703/0.2508, allocations: 210.4 kB / 1.076 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006483/0.2515, allocations: 146.3 kB / 1.076 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/0.2581, allocations: 5.129 MB / 1.081 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.2585, allocations: 0.8863 MB / 1.082 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000252/0.2587, allocations: 64.58 kB / 1.082 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.259, allocations: 223.3 kB / 1.082 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of SimCode: time 3.3e-07/0.259, allocations: 0 / 1.082 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.2792, allocations: 10.67 MB / 1.093 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/0.2795, allocations: 216.2 kB / 1.093 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/1.979, allocations: 4 kB / 1.093 GB, free: 14.07 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