Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002192/0.002192, allocations: 217.9 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.413/1.413, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.071/3.071, allocations: 0.49 GB / 0.7959 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 74.5 kB / 1.155 GB, free: 25.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3285, allocations: 176.1 MB / 1.327 GB, free: 2.016 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005789/0.3343, allocations: 4.193 MB / 1.331 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00263/0.3369, allocations: 1.364 MB / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003653/0.3373, allocations: 35.81 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003481/0.3376, allocations: 126.7 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003494/0.338, allocations: 182.4 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008703/0.3388, allocations: 426.8 kB / 1.333 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.00101/0.3398, allocations: 0.9516 MB / 1.334 GB, free: 10.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000536/0.3404, allocations: 310.6 kB / 1.334 GB, free: 10.4 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.3408, allocations: 342.7 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004281/0.3412, allocations: 342.3 kB / 1.335 GB, free: 9.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.3413, allocations: 88 kB / 1.335 GB, free: 9.645 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.3414, allocations: 92 kB / 1.335 GB, free: 9.555 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.3416, allocations: 175.5 kB / 1.335 GB, free: 9.383 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.3419, allocations: 401.9 kB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.3431, allocations: 1.066 MB / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3431, allocations: 0 / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3431, allocations: 0 / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.169e-05/0.3431, allocations: 0 / 1.336 GB, free: 7.918 MB / 1.029 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.002043/0.3451, allocations: 1.076 MB / 1.337 GB, free: 6.797 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3452, allocations: 12.03 kB / 1.337 GB, free: 6.785 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.66e-05/0.3452, allocations: 13.5 kB / 1.338 GB, free: 6.773 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.3453, allocations: 102.7 kB / 1.338 GB, free: 6.664 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.3455, allocations: 88.41 kB / 1.338 GB, free: 6.578 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.3465, allocations: 0.5077 MB / 1.338 GB, free: 6.051 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.516e-05/0.3465, allocations: 45.69 kB / 1.338 GB, free: 6.004 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.206e-05/0.3466, allocations: 56.36 kB / 1.338 GB, free: 5.949 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.3478, allocations: 0.6114 MB / 1.339 GB, free: 5.312 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.113e-05/0.3478, allocations: 3.938 kB / 1.339 GB, free: 5.309 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.134e-05/0.3478, allocations: 28 kB / 1.339 GB, free: 5.281 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.3479, allocations: 12 kB / 1.339 GB, free: 5.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.3489, allocations: 457 kB / 1.339 GB, free: 4.824 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.352, allocations: 1.955 MB / 1.341 GB, free: 2.805 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009748/0.353, allocations: 425.5 kB / 1.342 GB, free: 2.379 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.3534, allocations: 230.5 kB / 1.342 GB, free: 2.152 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.3535, allocations: 8.438 kB / 1.342 GB, free: 2.145 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005751/0.354, allocations: 261.3 kB / 1.342 GB, free: 1.879 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.354, allocations: 0 / 1.342 GB, free: 1.879 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.001336/0.3554, allocations: 0.5768 MB / 1.343 GB, free: 1.297 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.3554, allocations: 63.84 kB / 1.343 GB, free: 1.219 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000537/0.356, allocations: 449.9 kB / 1.343 GB, free: 0.7695 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.356, allocations: 37.7 kB / 1.343 GB, free: 0.7266 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.3563, allocations: 328.8 kB / 1.344 GB, free: 408 kB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.3564, allocations: 174.5 kB / 1.344 GB, free: 232 kB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.3566, allocations: 90.34 kB / 1.344 GB, free: 136 kB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002001/0.3568, allocations: 366.8 kB / 1.344 GB, free: 15.77 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004/0.3572, allocations: 165.2 kB / 1.344 GB, free: 15.61 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.3577, allocations: 254.6 kB / 1.345 GB, free: 15.33 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008436/0.3585, allocations: 451 kB / 1.345 GB, free: 14.86 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3585, allocations: 4 kB / 1.345 GB, free: 14.85 MB / 1.045 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001093/0.3596, allocations: 0.5651 MB / 1.346 GB, free: 14.27 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.3597, allocations: 39.56 kB / 1.346 GB, free: 14.23 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3597, allocations: 256 / 1.346 GB, free: 14.23 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3597, allocations: 8 kB / 1.346 GB, free: 14.22 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000497/0.3602, allocations: 115.8 kB / 1.346 GB, free: 14.11 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.3602, allocations: 7.938 kB / 1.346 GB, free: 14.1 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.3605, allocations: 59.61 kB / 1.346 GB, free: 14.04 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.3605, allocations: 19.98 kB / 1.346 GB, free: 14.02 MB / 1.045 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 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$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.000265/0.3608, allocations: 205.7 kB / 1.346 GB, free: 13.81 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.83e-05/0.3609, allocations: 71.59 kB / 1.346 GB, free: 13.74 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.361, allocations: 65.52 kB / 1.346 GB, free: 13.68 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.361, allocations: 4 kB / 1.346 GB, free: 13.67 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.361, allocations: 4 kB / 1.346 GB, free: 13.67 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.361, allocations: 0 / 1.346 GB, free: 13.67 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/0.3629, allocations: 1.146 MB / 1.347 GB, free: 12.47 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3629, allocations: 4 kB / 1.347 GB, free: 12.47 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.3634, allocations: 99.81 kB / 1.347 GB, free: 12.37 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3634, allocations: 0 / 1.347 GB, free: 12.37 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/0.3634, allocations: 12 kB / 1.347 GB, free: 12.36 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3634, allocations: 4 kB / 1.347 GB, free: 12.36 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3634, allocations: 0 / 1.347 GB, free: 12.36 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.3648, allocations: 0.7652 MB / 1.348 GB, free: 11.58 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.365, allocations: 91.58 kB / 1.348 GB, free: 11.49 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.598e-05/0.3651, allocations: 12 kB / 1.348 GB, free: 11.48 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.3654, allocations: 19.98 kB / 1.348 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.079e-05/0.3655, allocations: 36.36 kB / 1.348 GB, free: 11.42 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3655, allocations: 20 kB / 1.348 GB, free: 11.4 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003552/0.3658, allocations: 310.9 kB / 1.349 GB, free: 11.1 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3658, allocations: 0 / 1.349 GB, free: 11.1 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004426/0.3663, allocations: 143.6 kB / 1.349 GB, free: 10.96 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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.001725/0.368, allocations: 1.317 MB / 1.35 GB, free: 9.613 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009597/0.369, allocations: 465.2 kB / 1.35 GB, free: 9.145 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.369, allocations: 4 kB / 1.35 GB, free: 9.141 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000431/0.3694, allocations: 206.4 kB / 1.351 GB, free: 8.938 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007663/0.3702, allocations: 160.3 kB / 1.351 GB, free: 8.789 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007614/0.3778, allocations: 4.797 MB / 1.355 GB, free: 3.852 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.3783, allocations: 0.8938 MB / 1.356 GB, free: 2.926 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002733/0.3786, allocations: 64.58 kB / 1.356 GB, free: 2.863 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003246/0.3789, allocations: 219.4 kB / 1.357 GB, free: 2.648 MB / 1.045 GB Notification: Performance of SimCode: time 1.163e-06/0.3789, allocations: 0 / 1.357 GB, free: 2.648 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03625/0.4152, allocations: 11.84 MB / 1.368 GB, free: 7.051 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.85, allocations: 4.062 kB / 1.368 GB, free: 7.047 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --stepSize=0.119713 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.714180384005886]