Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.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.LimPID,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPID",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.001246/0.001246, allocations: 108 kB / 15.6 MB, free: 132 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.001325/0.001326, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.218/1.218, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.361/2.361, allocations: 437 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.91 kB / 0.8693 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5437/0.545, allocations: 151.6 MB / 1.017 GB, free: 2.41 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004606/0.5497, allocations: 3.724 MB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00231/0.552, allocations: 1.317 MB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.5525, allocations: 27.81 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003566/0.5529, allocations: 122.7 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006152/0.5535, allocations: 178.5 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.5546, allocations: 0.5668 MB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000939/0.5556, allocations: 0.9643 MB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004886/0.5561, allocations: 349.6 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004235/0.5565, allocations: 358.4 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003856/0.5569, allocations: 354.1 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.5571, allocations: 76 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.5572, allocations: 80 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.5573, allocations: 183.2 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002803/0.5576, allocations: 373.7 kB / 1.026 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006904/0.5583, allocations: 0.8663 MB / 1.027 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.5583, allocations: 4 kB / 1.027 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5583, allocations: 0 / 1.027 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.109e-05/0.5584, allocations: 0 / 1.027 GB, free: 8.863 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001951/0.5603, allocations: 1.18 MB / 1.028 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.5604, allocations: 12.03 kB / 1.028 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.5605, allocations: 94.7 kB / 1.028 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.5606, allocations: 91.81 kB / 1.028 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008793/0.5615, allocations: 0.5948 MB / 1.029 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.927e-05/0.5616, allocations: 96.97 kB / 1.029 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.296e-05/0.5617, allocations: 52.28 kB / 1.029 GB, free: 6.633 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009918/0.5627, allocations: 0.6039 MB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.5627, allocations: 8 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.896e-05/0.5628, allocations: 20 kB / 1.029 GB, free: 5.957 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.5628, allocations: 12 kB / 1.029 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009021/0.5637, allocations: 423.6 kB / 1.03 GB, free: 5.535 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.5663, allocations: 2.118 MB / 1.032 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.5675, allocations: 0.4963 MB / 1.032 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004379/0.5679, allocations: 221.8 kB / 1.033 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.568, allocations: 8 kB / 1.033 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006609/0.5686, allocations: 281.9 kB / 1.033 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 1.923e-06/0.5687, allocations: 0 / 1.033 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001382/0.57, allocations: 0.6062 MB / 1.033 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.5701, allocations: 92.84 kB / 1.033 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006191/0.5707, allocations: 0.6139 MB / 1.034 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.207e-05/0.5708, allocations: 37.7 kB / 1.034 GB, free: 0.9219 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.571, allocations: 352.8 kB / 1.034 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.5711, allocations: 161.6 kB / 1.035 GB, free: 424 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.5713, allocations: 94.19 kB / 1.035 GB, free: 324 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.734e-05/0.5714, allocations: 326 kB / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.5718, allocations: 187 kB / 1.035 GB, free: 15.81 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.5723, allocations: 280.2 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008777/0.5732, allocations: 485.9 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/0.5732, allocations: 0 / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001131/0.5743, allocations: 0.5982 MB / 1.037 GB, free: 14.37 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.5744, allocations: 33.69 kB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.5744, allocations: 4 kB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.5744, allocations: 4.312 kB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.5749, allocations: 111.8 kB / 1.037 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.5749, allocations: 8 kB / 1.037 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.5753, allocations: 67.34 kB / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.5753, allocations: 20 kB / 1.037 GB, free: 14.12 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004975/0.5758, allocations: 305.2 kB / 1.037 GB, free: 13.82 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004065/0.5762, allocations: 264.3 kB / 1.037 GB, free: 13.53 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007705/0.577, allocations: 465.8 kB / 1.038 GB, free: 13.03 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.128e-06/0.577, allocations: 4 kB / 1.038 GB, free: 13.03 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001032/0.5781, allocations: 0.5747 MB / 1.038 GB, free: 12.44 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.5781, allocations: 37.69 kB / 1.038 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.5781, allocations: 0 / 1.038 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.913e-06/0.5781, allocations: 8 kB / 1.038 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.5785, allocations: 95.89 kB / 1.038 GB, free: 12.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.5786, allocations: 12.23 kB / 1.038 GB, free: 12.29 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.5789, allocations: 51.67 kB / 1.038 GB, free: 12.23 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.5789, allocations: 16 kB / 1.039 GB, free: 12.22 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001428/0.5791, allocations: 218.3 kB / 1.039 GB, free: 12 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.87e-05/0.5792, allocations: 75.06 kB / 1.039 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.5793, allocations: 79.22 kB / 1.039 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.5793, allocations: 4 kB / 1.039 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.5794, allocations: 3.938 kB / 1.039 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5794, allocations: 7.984 kB / 1.039 GB, free: 11.83 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005677/0.5799, allocations: 0.6218 MB / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5799, allocations: 0 / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.5804, allocations: 87.88 kB / 1.04 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.5804, allocations: 0 / 1.04 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.5804, allocations: 11.94 kB / 1.04 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.5804, allocations: 0 / 1.04 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5805, allocations: 0 / 1.04 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.5819, allocations: 0.7288 MB / 1.04 GB, free: 10.31 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.5821, allocations: 188.2 kB / 1.04 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.858e-05/0.5821, allocations: 20 kB / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.5825, allocations: 31.95 kB / 1.041 GB, free: 10.06 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.958e-05/0.5826, allocations: 35.89 kB / 1.041 GB, free: 10.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.5827, allocations: 16 kB / 1.041 GB, free: 10.01 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004426/0.5831, allocations: 431 kB / 1.041 GB, free: 9.594 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5831, allocations: 0 / 1.041 GB, free: 9.594 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000543/0.5837, allocations: 219.2 kB / 1.041 GB, free: 9.379 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.001638/0.5853, allocations: 1.281 MB / 1.042 GB, free: 8.059 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00156/0.5869, allocations: 0.8043 MB / 1.043 GB, free: 7.234 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5869, allocations: 0 / 1.043 GB, free: 7.234 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.5873, allocations: 224.2 kB / 1.043 GB, free: 7.016 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008315/0.5882, allocations: 207.7 kB / 1.044 GB, free: 6.824 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007158/0.5953, allocations: 5.62 MB / 1.049 GB, free: 1.031 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.5957, allocations: 0.918 MB / 1.05 GB, free: 88 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003594/0.5961, allocations: 89.12 kB / 1.05 GB, free: 0 / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.5964, allocations: 267.4 kB / 1.05 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.5964, allocations: 0 / 1.05 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.129/0.7254, allocations: 13.84 MB / 1.064 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.116/7.841, allocations: 6.125 kB / 1.064 GB, free: 2.047 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches