Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_9_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.001343/0.001343, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.007366/0.007366, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.178/1.178, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.066/2.066, allocations: 390.9 MB / 0.6664 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002897, allocations: 8.188 kB / 0.8161 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5136/0.5139, allocations: 142.4 MB / 0.9552 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003366/0.5173, allocations: 3.726 MB / 0.9588 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002148/0.5195, allocations: 1.269 MB / 0.96 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000529/0.52, allocations: 24.38 kB / 0.9601 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002955/0.5203, allocations: 88.84 kB / 0.9601 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004568/0.5208, allocations: 151.3 kB / 0.9603 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007072/0.5215, allocations: 385.4 kB / 0.9607 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006734/0.5222, allocations: 0.8742 MB / 0.9615 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005005/0.5227, allocations: 425.8 kB / 0.9619 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.5229, allocations: 233.2 kB / 0.9621 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.5232, allocations: 261 kB / 0.9624 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.5232, allocations: 22.78 kB / 0.9624 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.141e-05/0.5233, allocations: 23.91 kB / 0.9624 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.996e-05/0.5234, allocations: 98.58 kB / 0.9625 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.5236, allocations: 334.6 kB / 0.9628 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005622/0.5242, allocations: 0.9587 MB / 0.9638 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5242, allocations: 0 / 0.9638 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5242, allocations: 0 / 0.9638 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.5242, allocations: 3.938 kB / 0.9638 GB, free: 1.23 MB / 0.7169 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.00133/0.5255, allocations: 0.9533 MB / 0.9647 GB, free: 468 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.5256, allocations: 9.125 kB / 0.9647 GB, free: 468 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.921e-05/0.5257, allocations: 102 kB / 0.9648 GB, free: 376 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.5258, allocations: 85.16 kB / 0.9649 GB, free: 332 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000665/0.5265, allocations: 0.5552 MB / 0.9654 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.5265, allocations: 42.69 kB / 0.9655 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.479e-05/0.5266, allocations: 57.34 kB / 0.9655 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.5276, allocations: 0.6178 MB / 0.9661 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.5276, allocations: 1 kB / 0.9661 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.928e-05/0.5277, allocations: 21.56 kB / 0.9662 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.5277, allocations: 14.06 kB / 0.9662 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009706/0.5287, allocations: 475.8 kB / 0.9666 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.5313, allocations: 2.019 MB / 0.9686 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008951/0.5322, allocations: 458.7 kB / 0.969 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004498/0.5326, allocations: 246.5 kB / 0.9693 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.5327, allocations: 4.844 kB / 0.9693 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005491/0.5332, allocations: 275.3 kB / 0.9695 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 4.098e-06/0.5332, allocations: 0 / 0.9695 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001277/0.5345, allocations: 0.6016 MB / 0.9701 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.5346, allocations: 57.53 kB / 0.9702 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004687/0.535, allocations: 448 kB / 0.9706 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.5351, allocations: 40.23 kB / 0.9706 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.5353, allocations: 321.2 kB / 0.971 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.5354, allocations: 165.7 kB / 0.9711 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.799e-05/0.5355, allocations: 50.97 kB / 0.9712 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.5356, allocations: 362.4 kB / 0.9715 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/0.536, allocations: 168.6 kB / 0.9717 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000429/0.5365, allocations: 263 kB / 0.9719 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008188/0.5373, allocations: 466.8 kB / 0.9724 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5373, allocations: 0 / 0.9724 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001061/0.5384, allocations: 0.5797 MB / 0.9729 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.5384, allocations: 32.64 kB / 0.973 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.5384, allocations: 2.031 kB / 0.973 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.5385, allocations: 5.031 kB / 0.973 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004663/0.5389, allocations: 120 kB / 0.9731 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.539, allocations: 4.906 kB / 0.9731 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.5393, allocations: 66.69 kB / 0.9732 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/0.5394, allocations: 18.53 kB / 0.9732 GB, free: 10.54 MB / 0.7325 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.0002356/0.5396, allocations: 214.8 kB / 0.9734 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.5397, allocations: 61.53 kB / 0.9734 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.5398, allocations: 62.44 kB / 0.9735 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.5398, allocations: 4.688 kB / 0.9735 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.5398, allocations: 1.125 kB / 0.9735 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.5398, allocations: 3.984 kB / 0.9735 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.5415, allocations: 1.186 MB / 0.9747 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5415, allocations: 0 / 0.9747 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000459/0.542, allocations: 102.2 kB / 0.9748 GB, free: 9.383 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/0.542, allocations: 6.406 kB / 0.9748 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.5421, allocations: 10.72 kB / 0.9748 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5421, allocations: 2.656 kB / 0.9748 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5421, allocations: 0 / 0.9748 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.5434, allocations: 0.7767 MB / 0.9755 GB, free: 8.918 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.5436, allocations: 171.6 kB / 0.9757 GB, free: 8.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.505e-05/0.5437, allocations: 11.2 kB / 0.9757 GB, free: 8.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.544, allocations: 37.31 kB / 0.9757 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.883e-05/0.5441, allocations: 32.58 kB / 0.9758 GB, free: 8.707 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.5441, allocations: 12.66 kB / 0.9758 GB, free: 8.703 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003153/0.5444, allocations: 312.3 kB / 0.9761 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.214e-06/0.5444, allocations: 0 / 0.9761 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004285/0.5449, allocations: 148.5 kB / 0.9762 GB, free: 8.465 MB / 0.7325 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.001583/0.5465, allocations: 1.329 MB / 0.9775 GB, free: 7.469 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008814/0.5473, allocations: 499.4 kB / 0.978 GB, free: 7.219 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.5474, allocations: 5.312 kB / 0.978 GB, free: 7.215 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.5478, allocations: 215.7 kB / 0.9782 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.5485, allocations: 152.2 kB / 0.9784 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007243/0.5558, allocations: 5.253 MB / 0.9835 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.5562, allocations: 0.8863 MB / 0.9844 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002664/0.5565, allocations: 64.58 kB / 0.9844 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.5567, allocations: 219.4 kB / 0.9846 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of SimCode: time 3.2e-07/0.5567, allocations: 0 / 0.9846 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03746/0.5942, allocations: 10.53 MB / 0.9949 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000281/0.5945, allocations: 203.9 kB / 0.9951 GB, free: 6.043 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.345, allocations: 0 / 0.9951 GB, free: 6.043 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches