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: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001678/0.001679, allocations: 195 kB / 16.14 MB, free: 6.711 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.526/1.526, allocations: 222.9 MB / 239.8 MB, free: 4.535 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.802/2.802, allocations: 437 MB / 0.7099 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 67.89 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7498/0.7518, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005456/0.7573, allocations: 3.727 MB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002838/0.7602, allocations: 1.297 MB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004919/0.7607, allocations: 27.88 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003871/0.7611, allocations: 95.09 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005495/0.7617, allocations: 143 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.763, allocations: 0.5391 MB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001023/0.764, allocations: 0.894 MB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005592/0.7646, allocations: 337.6 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004606/0.765, allocations: 318.2 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.7654, allocations: 326.1 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.7655, allocations: 36 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.065e-05/0.7656, allocations: 36 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.7658, allocations: 139.3 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003164/0.7661, allocations: 337.7 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008063/0.7669, allocations: 0.8153 MB / 1.025 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.7669, allocations: 7.938 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.11e-07/0.7669, allocations: 0 / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.767, allocations: 0 / 1.025 GB, free: 9.684 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.002279/0.7692, allocations: 1.18 MB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.7693, allocations: 12.03 kB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.7695, allocations: 91.81 kB / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009876/0.7705, allocations: 0.587 MB / 1.027 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.7706, allocations: 105 kB / 1.027 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.731e-05/0.7707, allocations: 56.28 kB / 1.027 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.7719, allocations: 0.6041 MB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.772, allocations: 3.984 kB / 1.028 GB, free: 6.895 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.796e-05/0.772, allocations: 24 kB / 1.028 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.7721, allocations: 12 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.7731, allocations: 423.6 kB / 1.028 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003157/0.7763, allocations: 2.114 MB / 1.031 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.7776, allocations: 0.5029 MB / 1.031 GB, free: 3.734 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.7781, allocations: 208.8 kB / 1.031 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.7781, allocations: 4 kB / 1.031 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007103/0.7788, allocations: 293.9 kB / 1.031 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 2.544e-06/0.7788, allocations: 1.094 kB / 1.031 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.00159/0.7804, allocations: 0.6034 MB / 1.032 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.7805, allocations: 92.86 kB / 1.032 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007917/0.7813, allocations: 0.6062 MB / 1.033 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.7814, allocations: 33.7 kB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.7817, allocations: 364.7 kB / 1.033 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.7819, allocations: 157.8 kB / 1.033 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.782, allocations: 94.23 kB / 1.033 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.7822, allocations: 322 kB / 1.034 GB, free: 0.918 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.7827, allocations: 190.9 kB / 1.034 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005385/0.7832, allocations: 284.1 kB / 1.034 GB, free: 424 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009836/0.7842, allocations: 474 kB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.7842, allocations: 3.938 kB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001328/0.7856, allocations: 0.6021 MB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.597e-05/0.7856, allocations: 31.58 kB / 1.035 GB, free: 15.26 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.7856, allocations: 4 kB / 1.035 GB, free: 15.25 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.7857, allocations: 4.312 kB / 1.035 GB, free: 15.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005059/0.7862, allocations: 111.8 kB / 1.035 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.7862, allocations: 8 kB / 1.035 GB, free: 15.13 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.7866, allocations: 67.34 kB / 1.035 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.7867, allocations: 20 kB / 1.035 GB, free: 15.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006082/0.7873, allocations: 309.2 kB / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004948/0.7878, allocations: 272.2 kB / 1.036 GB, free: 14.44 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008796/0.7887, allocations: 457.8 kB / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.425e-06/0.7887, allocations: 4 kB / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001184/0.7899, allocations: 0.5787 MB / 1.037 GB, free: 13.36 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.7899, allocations: 33.7 kB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.7899, allocations: 0 / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.79, allocations: 11.98 kB / 1.037 GB, free: 13.31 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.7904, allocations: 103.8 kB / 1.037 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.7904, allocations: 4 kB / 1.037 GB, free: 13.2 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.7908, allocations: 55.91 kB / 1.037 GB, free: 13.15 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.7909, allocations: 16 kB / 1.037 GB, free: 13.13 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.0002454/0.7911, allocations: 220.1 kB / 1.037 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.7912, allocations: 71.06 kB / 1.037 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.7914, allocations: 83.2 kB / 1.038 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.7915, allocations: 4 kB / 1.038 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.7915, allocations: 0 / 1.038 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.7915, allocations: 4 kB / 1.038 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008937/0.7924, allocations: 0.6257 MB / 1.038 GB, free: 12.07 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.7924, allocations: 3.938 kB / 1.038 GB, free: 12.07 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/0.7929, allocations: 79.89 kB / 1.038 GB, free: 11.99 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.7929, allocations: 0 / 1.038 GB, free: 11.99 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.793, allocations: 15.98 kB / 1.038 GB, free: 11.97 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.793, allocations: 0 / 1.038 GB, free: 11.97 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.793, allocations: 4 kB / 1.038 GB, free: 11.97 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.7947, allocations: 0.7275 MB / 1.039 GB, free: 11.22 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/0.795, allocations: 188.2 kB / 1.039 GB, free: 11.02 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.596e-05/0.7951, allocations: 12 kB / 1.039 GB, free: 11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003982/0.7955, allocations: 31.97 kB / 1.039 GB, free: 10.97 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.7956, allocations: 31.95 kB / 1.039 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.8e-05/0.7957, allocations: 19.98 kB / 1.039 GB, free: 10.92 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006485/0.7964, allocations: 431 kB / 1.04 GB, free: 10.51 MB / 0.795 GB Notification: Performance of sort global known variables: time 3e-07/0.7964, allocations: 0 / 1.04 GB, free: 10.51 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007382/0.7971, allocations: 223.2 kB / 1.04 GB, free: 10.29 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.000229/0.7974, allocations: 121.8 kB / 1.04 GB, free: 10.16 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001738/0.7991, allocations: 0.785 MB / 1.041 GB, free: 9.352 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.7991, allocations: 0 / 1.041 GB, free: 9.352 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004656/0.7996, allocations: 219.9 kB / 1.041 GB, free: 9.137 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009081/0.8005, allocations: 185.5 kB / 1.041 GB, free: 8.957 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.8029, allocations: 1.443 MB / 1.043 GB, free: 7.48 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.8035, allocations: 0.9144 MB / 1.043 GB, free: 6.539 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004175/0.8039, allocations: 93.11 kB / 1.044 GB, free: 6.449 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.804, allocations: 51.44 kB / 1.044 GB, free: 6.398 MB / 0.795 GB Notification: Performance of SimCode: time 9.92e-07/0.8041, allocations: 0 / 1.044 GB, free: 6.398 MB / 0.795 GB Notification: Performance of Templates: time 0.01529/0.8194, allocations: 7.197 MB / 1.051 GB, free: 15.28 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.makefile (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 & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches