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.001214/0.001214, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 191.5 kB / 16.53 MB, free: 6.664 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.206/1.206, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.36/2.36, allocations: 437 MB / 0.7104 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 59.89 kB / 0.8693 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5105/0.5118, allocations: 151.6 MB / 1.017 GB, free: 2.539 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004561/0.5164, allocations: 4.122 MB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.5181, allocations: 1.325 MB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.5184, allocations: 23.88 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.5186, allocations: 130.7 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.5189, allocations: 174.4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006594/0.5196, allocations: 416.8 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006936/0.5203, allocations: 0.963 MB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005189/0.5208, allocations: 458.1 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.5211, allocations: 330.7 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.5214, allocations: 330.4 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.854e-05/0.5215, allocations: 92 kB / 1.026 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.5216, allocations: 92 kB / 1.026 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.5217, allocations: 183.3 kB / 1.026 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000269/0.522, allocations: 394.1 kB / 1.026 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006836/0.5227, allocations: 1.03 MB / 1.027 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.5227, allocations: 0 / 1.027 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5227, allocations: 0 / 1.027 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.5227, allocations: 0 / 1.027 GB, free: 8.473 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.001479/0.5242, allocations: 1.081 MB / 1.028 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.5242, allocations: 15.98 kB / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.408e-05/0.5243, allocations: 94.7 kB / 1.028 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.5245, allocations: 91.89 kB / 1.028 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006874/0.5251, allocations: 0.5533 MB / 1.029 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.5252, allocations: 41.69 kB / 1.029 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.458e-05/0.5253, allocations: 56.38 kB / 1.029 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009102/0.5262, allocations: 0.6154 MB / 1.03 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.5262, allocations: 7.938 kB / 1.03 GB, free: 5.789 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.66e-05/0.5263, allocations: 24 kB / 1.03 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.5263, allocations: 16 kB / 1.03 GB, free: 5.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008675/0.5272, allocations: 457 kB / 1.03 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.5295, allocations: 2.016 MB / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008331/0.5304, allocations: 446.1 kB / 1.033 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003997/0.5308, allocations: 242 kB / 1.033 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.5308, allocations: 4.438 kB / 1.033 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004874/0.5313, allocations: 265.2 kB / 1.033 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 1.714e-06/0.5313, allocations: 0 / 1.033 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001132/0.5325, allocations: 0.5844 MB / 1.034 GB, free: 1.668 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.5325, allocations: 59.84 kB / 1.034 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.5329, allocations: 442 kB / 1.034 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.533, allocations: 37.7 kB / 1.034 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.5331, allocations: 325 kB / 1.034 GB, free: 0.793 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.5333, allocations: 161.7 kB / 1.035 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.5334, allocations: 98.14 kB / 1.035 GB, free: 0.5312 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.5335, allocations: 366.7 kB / 1.035 GB, free: 168 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.5339, allocations: 169 kB / 1.035 GB, free: 0 / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.5343, allocations: 245.8 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007108/0.535, allocations: 456 kB / 1.036 GB, free: 15.25 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.535, allocations: 0 / 1.036 GB, free: 15.25 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000912/0.5359, allocations: 0.5664 MB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.5359, allocations: 31.42 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.536, allocations: 4 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.536, allocations: 4 kB / 1.036 GB, free: 14.63 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.5364, allocations: 115.8 kB / 1.037 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.5364, allocations: 4 kB / 1.037 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.5367, allocations: 55.5 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.5368, allocations: 20 kB / 1.037 GB, free: 14.44 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.0002004/0.537, allocations: 210.9 kB / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.537, allocations: 59.28 kB / 1.037 GB, free: 14.17 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.5372, allocations: 65.58 kB / 1.037 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.5372, allocations: 4 kB / 1.037 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5372, allocations: 0 / 1.037 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/0.5372, allocations: 3.984 kB / 1.037 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.5387, allocations: 1.177 MB / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.5387, allocations: 4 kB / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004311/0.5391, allocations: 95.83 kB / 1.038 GB, free: 12.76 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.5391, allocations: 3.938 kB / 1.038 GB, free: 12.76 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.5392, allocations: 15.98 kB / 1.038 GB, free: 12.74 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.5392, allocations: 0 / 1.038 GB, free: 12.74 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.5392, allocations: 0 / 1.038 GB, free: 12.74 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.5404, allocations: 0.7717 MB / 1.039 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.5405, allocations: 172.3 kB / 1.039 GB, free: 11.77 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.671e-05/0.5406, allocations: 4 kB / 1.039 GB, free: 11.76 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.5409, allocations: 31.97 kB / 1.039 GB, free: 11.73 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.5409, allocations: 36.39 kB / 1.039 GB, free: 11.7 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.541, allocations: 8 kB / 1.039 GB, free: 11.69 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002908/0.5413, allocations: 310.9 kB / 1.039 GB, free: 11.39 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5413, allocations: 0 / 1.039 GB, free: 11.39 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003646/0.5416, allocations: 147.4 kB / 1.04 GB, free: 11.24 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.001427/0.5431, allocations: 1.309 MB / 1.041 GB, free: 9.91 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009505/0.544, allocations: 0.497 MB / 1.041 GB, free: 9.402 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.544, allocations: 0 / 1.041 GB, free: 9.402 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.5444, allocations: 222.3 kB / 1.042 GB, free: 9.184 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006721/0.5451, allocations: 157.2 kB / 1.042 GB, free: 9.039 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006304/0.5514, allocations: 4.886 MB / 1.047 GB, free: 4.004 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.5518, allocations: 0.8898 MB / 1.047 GB, free: 3.086 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002447/0.5521, allocations: 64.58 kB / 1.047 GB, free: 3.023 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.5523, allocations: 219.4 kB / 1.048 GB, free: 2.809 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.5523, allocations: 0 / 1.048 GB, free: 2.809 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/0.7064, allocations: 11.13 MB / 1.059 GB, free: 7.852 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.787/7.493, allocations: 12.5 kB / 1.059 GB, free: 7.844 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