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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008444/0.0008446, allocations: 97.64 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.004879/0.004879, allocations: 169.8 kB / 16.27 MB, free: 6.66 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.169/1.169, 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 10.1.0-maint.10.0.x/package.mo): time 2.239/2.239, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002716, allocations: 8 kB / 0.8729 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4965/0.4968, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003254/0.5001, allocations: 3.315 MB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002077/0.5022, allocations: 1.278 MB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003791/0.5026, allocations: 31.81 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.5029, allocations: 91.16 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004778/0.5034, allocations: 135 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009951/0.5044, allocations: 0.5452 MB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008338/0.5052, allocations: 0.8939 MB / 1.029 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004447/0.5056, allocations: 329.6 kB / 1.03 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003358/0.506, allocations: 278.3 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.5063, allocations: 274.1 kB / 1.03 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.999e-05/0.5064, allocations: 20 kB / 1.03 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.487e-05/0.5064, allocations: 27.94 kB / 1.03 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/0.5065, allocations: 115.3 kB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.5067, allocations: 323.5 kB / 1.031 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.5073, allocations: 0.7841 MB / 1.031 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.5073, allocations: 0 / 1.031 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5073, allocations: 0 / 1.031 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.5073, allocations: 0 / 1.031 GB, free: 7.375 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.001636/0.509, allocations: 1.055 MB / 1.032 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.509, allocations: 8.031 kB / 1.032 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.5091, allocations: 98.64 kB / 1.032 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.5093, allocations: 91.81 kB / 1.033 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007944/0.5101, allocations: 0.5987 MB / 1.033 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.464e-05/0.5102, allocations: 104.9 kB / 1.033 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.492e-05/0.5102, allocations: 56.28 kB / 1.033 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009779/0.5112, allocations: 0.6157 MB / 1.034 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.5112, allocations: 7.938 kB / 1.034 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.586e-05/0.5113, allocations: 20 kB / 1.034 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.5113, allocations: 12 kB / 1.034 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009001/0.5122, allocations: 447.6 kB / 1.034 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002427/0.5147, allocations: 2.125 MB / 1.036 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.5158, allocations: 0.5252 MB / 1.037 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004398/0.5163, allocations: 226.8 kB / 1.037 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.5163, allocations: 7.984 kB / 1.037 GB, free: 1.141 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005991/0.5169, allocations: 294.2 kB / 1.037 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 3.737e-06/0.5169, allocations: 0 / 1.037 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001333/0.5183, allocations: 0.645 MB / 1.038 GB, free: 192 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.5183, allocations: 88.86 kB / 1.038 GB, free: 84 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.5189, allocations: 0.6062 MB / 1.039 GB, free: 15.47 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.519, allocations: 41.69 kB / 1.039 GB, free: 15.42 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.5192, allocations: 352.7 kB / 1.039 GB, free: 15.07 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.5193, allocations: 161.7 kB / 1.039 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.431e-05/0.5194, allocations: 50.8 kB / 1.039 GB, free: 14.86 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.456e-05/0.5195, allocations: 326 kB / 1.04 GB, free: 14.54 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.5199, allocations: 185 kB / 1.04 GB, free: 14.36 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.5204, allocations: 300.2 kB / 1.04 GB, free: 14.03 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008706/0.5213, allocations: 493.9 kB / 1.041 GB, free: 13.51 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5213, allocations: 4 kB / 1.041 GB, free: 13.51 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001097/0.5224, allocations: 0.6178 MB / 1.041 GB, free: 12.88 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.405e-05/0.5225, allocations: 193.2 kB / 1.041 GB, free: 12.64 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.5225, allocations: 4 kB / 1.041 GB, free: 12.64 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.5225, allocations: 4 kB / 1.041 GB, free: 12.63 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.523, allocations: 115.8 kB / 1.041 GB, free: 12.52 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.523, allocations: 4 kB / 1.041 GB, free: 12.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003592/0.5233, allocations: 71.44 kB / 1.042 GB, free: 12.45 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/0.5234, allocations: 23.94 kB / 1.042 GB, free: 12.42 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/0.5234, allocations: 4 kB / 1.042 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009222/0.5243, allocations: 0.504 MB / 1.042 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.5243, allocations: 4.031 kB / 1.042 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.482e-06/0.5243, allocations: 11.98 kB / 1.042 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004081/0.5248, allocations: 111.8 kB / 1.042 GB, free: 11.79 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.5248, allocations: 4 kB / 1.042 GB, free: 11.78 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.5251, allocations: 51.58 kB / 1.042 GB, free: 11.73 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.5251, allocations: 23.98 kB / 1.042 GB, free: 11.71 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.0002275/0.5254, allocations: 278.2 kB / 1.043 GB, free: 11.43 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.5255, allocations: 79 kB / 1.043 GB, free: 11.35 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.5256, allocations: 79.22 kB / 1.043 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5256, allocations: 4 kB / 1.043 GB, free: 11.26 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5256, allocations: 0 / 1.043 GB, free: 11.26 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5256, allocations: 3.984 kB / 1.043 GB, free: 11.26 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000551/0.5262, allocations: 0.618 MB / 1.043 GB, free: 10.59 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5262, allocations: 0 / 1.043 GB, free: 10.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/0.5266, allocations: 95.88 kB / 1.043 GB, free: 10.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.5267, allocations: 0 / 1.043 GB, free: 10.5 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.5267, allocations: 12 kB / 1.043 GB, free: 10.48 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5267, allocations: 0 / 1.043 GB, free: 10.48 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5267, allocations: 4 kB / 1.043 GB, free: 10.48 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.5281, allocations: 0.7601 MB / 1.044 GB, free: 9.703 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.5283, allocations: 188 kB / 1.044 GB, free: 9.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.709e-05/0.5284, allocations: 15.98 kB / 1.044 GB, free: 9.484 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.5288, allocations: 43.97 kB / 1.044 GB, free: 9.441 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.5288, allocations: 31.95 kB / 1.044 GB, free: 9.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.5289, allocations: 15.98 kB / 1.044 GB, free: 9.395 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004276/0.5293, allocations: 431 kB / 1.045 GB, free: 8.98 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.303e-06/0.5293, allocations: 0 / 1.045 GB, free: 8.98 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005102/0.5298, allocations: 215.3 kB / 1.045 GB, free: 8.77 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.001625/0.5315, allocations: 1.323 MB / 1.046 GB, free: 7.41 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001426/0.5329, allocations: 0.8091 MB / 1.047 GB, free: 6.578 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5329, allocations: 4 kB / 1.047 GB, free: 6.574 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.5334, allocations: 223.8 kB / 1.047 GB, free: 6.355 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007959/0.5342, allocations: 181 kB / 1.048 GB, free: 6.18 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007397/0.5416, allocations: 5.927 MB / 1.053 GB, free: 96 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.542, allocations: 0.9105 MB / 1.054 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003275/0.5423, allocations: 93.11 kB / 1.054 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.5426, allocations: 255.3 kB / 1.055 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.5426, allocations: 3.938 kB / 1.055 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9062/1.449, allocations: 13.19 MB / 1.067 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/1.449, allocations: 198.8 kB / 1.068 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/3.228, allocations: 4 kB / 1.068 GB, free: 1.562 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