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.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.000799/0.000799, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008828/0.0008828, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8716/0.8716, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.781/1.781, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.476e-05/1.633e-05, allocations: 6.281 kB / 0.9996 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00366/0.003676, allocations: 3.765 MB / 1.003 GB, free: 9.75 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001648/0.005324, allocations: 1.32 MB / 1.005 GB, free: 8.422 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.005579, allocations: 35.75 kB / 1.005 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.000276/0.005855, allocations: 130.7 kB / 1.005 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.006091, allocations: 194.2 kB / 1.005 GB, free: 8.066 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.006668, allocations: 422.4 kB / 1.005 GB, free: 7.66 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0006359/0.007304, allocations: 0.9785 MB / 1.006 GB, free: 6.676 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.007661, allocations: 290.6 kB / 1.007 GB, free: 6.371 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003759/0.008037, allocations: 0.4951 MB / 1.007 GB, free: 5.875 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.008245, allocations: 243.2 kB / 1.007 GB, free: 5.637 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 7.381e-05/0.008319, allocations: 92 kB / 1.007 GB, free: 5.547 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.373e-05/0.008383, allocations: 95.94 kB / 1.007 GB, free: 5.453 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 8.993e-05/0.008473, allocations: 179.4 kB / 1.008 GB, free: 5.277 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.008628, allocations: 251.3 kB / 1.008 GB, free: 5.031 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0007422/0.00937, allocations: 1.083 MB / 1.009 GB, free: 3.945 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.009373, allocations: 0 / 1.009 GB, free: 3.945 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.052e-06/0.009374, allocations: 0 / 1.009 GB, free: 3.945 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.009382, allocations: 0 / 1.009 GB, free: 3.945 MB / 0.9636 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.001236/0.01062, allocations: 1.076 MB / 1.01 GB, free: 2.828 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.01066, allocations: 12.75 kB / 1.01 GB, free: 2.816 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.81e-05/0.01074, allocations: 98.69 kB / 1.01 GB, free: 2.711 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.063e-05/0.01083, allocations: 88.42 kB / 1.01 GB, free: 2.625 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006078/0.01144, allocations: 0.4953 MB / 1.011 GB, free: 2.105 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.01147, allocations: 49.62 kB / 1.011 GB, free: 2.055 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.01153, allocations: 60.38 kB / 1.011 GB, free: 1.996 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006823/0.01221, allocations: 0.6544 MB / 1.011 GB, free: 1.305 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.01223, allocations: 192 / 1.011 GB, free: 1.305 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.01226, allocations: 32.12 kB / 1.011 GB, free: 1.273 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.01227, allocations: 12 kB / 1.011 GB, free: 1.262 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005983/0.01287, allocations: 461 kB / 1.012 GB, free: 0.8086 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.01467, allocations: 1.78 MB / 1.014 GB, free: 14.96 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.01521, allocations: 421.7 kB / 1.014 GB, free: 14.54 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.01547, allocations: 222.3 kB / 1.014 GB, free: 14.32 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.0155, allocations: 4.5 kB / 1.014 GB, free: 14.31 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003326/0.01583, allocations: 262.2 kB / 1.014 GB, free: 14.05 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=49): time 1.714e-06/0.01583, allocations: 0 / 1.014 GB, free: 14.05 MB / 0.9792 GB Notification: Performance of matching and sorting (n=49): time 0.0008522/0.01668, allocations: 0.591 MB / 1.015 GB, free: 13.45 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.01672, allocations: 55.91 kB / 1.015 GB, free: 13.38 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.01704, allocations: 453.9 kB / 1.016 GB, free: 12.93 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.01706, allocations: 37.7 kB / 1.016 GB, free: 12.89 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.01722, allocations: 332.8 kB / 1.016 GB, free: 12.55 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 8.487e-05/0.01731, allocations: 170.5 kB / 1.016 GB, free: 12.39 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.083e-05/0.0174, allocations: 94.33 kB / 1.016 GB, free: 12.29 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.0175, allocations: 366.7 kB / 1.017 GB, free: 11.92 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.01773, allocations: 198.9 kB / 1.017 GB, free: 11.73 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.018, allocations: 280.4 kB / 1.017 GB, free: 11.42 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/0.01847, allocations: 455.2 kB / 1.017 GB, free: 10.94 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.01847, allocations: 0 / 1.017 GB, free: 10.94 MB / 0.9792 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006102/0.01908, allocations: 0.5866 MB / 1.018 GB, free: 10.34 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.01911, allocations: 41.62 kB / 1.018 GB, free: 10.29 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.01912, allocations: 4 kB / 1.018 GB, free: 10.29 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.01914, allocations: 7.938 kB / 1.018 GB, free: 10.28 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.01939, allocations: 107.9 kB / 1.018 GB, free: 10.17 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.0194, allocations: 11.94 kB / 1.018 GB, free: 10.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.01955, allocations: 55.61 kB / 1.018 GB, free: 10.11 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.01957, allocations: 31.91 kB / 1.018 GB, free: 10.07 MB / 0.9792 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.0001648/0.01974, allocations: 205.8 kB / 1.018 GB, free: 9.863 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.01978, allocations: 59.62 kB / 1.018 GB, free: 9.805 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.362e-05/0.01986, allocations: 65.58 kB / 1.019 GB, free: 9.738 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.01987, allocations: 7.938 kB / 1.019 GB, free: 9.73 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.01987, allocations: 0 / 1.019 GB, free: 9.73 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.01988, allocations: 3.938 kB / 1.019 GB, free: 9.727 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.0209, allocations: 1.078 MB / 1.02 GB, free: 8.602 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.02091, allocations: 3.938 kB / 1.02 GB, free: 8.598 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.02114, allocations: 95.88 kB / 1.02 GB, free: 8.504 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.02115, allocations: 0 / 1.02 GB, free: 8.504 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.02116, allocations: 8 kB / 1.02 GB, free: 8.496 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.02117, allocations: 0 / 1.02 GB, free: 8.496 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.02117, allocations: 7.938 kB / 1.02 GB, free: 8.488 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008004/0.02197, allocations: 0.7631 MB / 1.02 GB, free: 7.711 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.02208, allocations: 103.5 kB / 1.021 GB, free: 7.609 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.02212, allocations: 8 kB / 1.021 GB, free: 7.602 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.02225, allocations: 23.98 kB / 1.021 GB, free: 7.578 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.118e-05/0.02232, allocations: 40.41 kB / 1.021 GB, free: 7.539 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.02234, allocations: 12 kB / 1.021 GB, free: 7.527 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0002094/0.02255, allocations: 310.9 kB / 1.021 GB, free: 7.227 MB / 0.9792 GB Notification: Performance of sort global known variables: time 5e-08/0.02255, allocations: 0 / 1.021 GB, free: 7.227 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0002789/0.02283, allocations: 151.6 kB / 1.021 GB, free: 7.078 MB / 0.9792 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.001061/0.02389, allocations: 1.311 MB / 1.022 GB, free: 5.738 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.00056/0.02445, allocations: 491.3 kB / 1.023 GB, free: 5.238 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.02445, allocations: 0 / 1.023 GB, free: 5.238 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.02469, allocations: 206.8 kB / 1.023 GB, free: 5.039 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.02515, allocations: 154.8 kB / 1.023 GB, free: 4.898 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.02961, allocations: 4.841 MB / 1.028 GB, free: 15.88 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.02981, allocations: 288.7 kB / 1.028 GB, free: 15.57 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.0001762/0.02998, allocations: 68.58 kB / 1.028 GB, free: 15.51 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/0.03019, allocations: 224.4 kB / 1.028 GB, free: 15.29 MB / 0.9948 GB Notification: Performance of SimCode: time 6.72e-07/0.03019, allocations: 0 / 1.028 GB, free: 15.29 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.05493, allocations: 12.54 MB / 1.041 GB, free: 3.043 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.6/6.655, allocations: 8.047 kB / 1.041 GB, free: 3.035 MB / 0.9948 GB " [Timeout remaining time 293] (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 --stepSize=0.119832 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.316139462403953]