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: 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.001181/0.001181, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001558/0.001558, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.603/1.603, allocations: 223.3 MB / 240 MB, free: 5.27 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.812/2.812, allocations: 437.7 MB / 0.7117 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.00036, allocations: 8 kB / 0.8722 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8964/0.8968, allocations: 153.8 MB / 1.022 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004267/0.9011, allocations: 3.134 MB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002786/0.9039, allocations: 1.259 MB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007675/0.9047, allocations: 27.81 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004069/0.9051, allocations: 91.11 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006585/0.9058, allocations: 131 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.907, allocations: 459.6 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009706/0.908, allocations: 0.82 MB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004317/0.9084, allocations: 251.1 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003719/0.9088, allocations: 270.5 kB / 1.029 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.9091, allocations: 258.3 kB / 1.029 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.084e-05/0.9092, allocations: 23.98 kB / 1.029 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.146e-05/0.9093, allocations: 20 kB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.9094, allocations: 103.4 kB / 1.029 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.9096, allocations: 145.2 kB / 1.029 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006156/0.9102, allocations: 0.6216 MB / 1.03 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.9102, allocations: 0 / 1.03 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.755e-06/0.9102, allocations: 0 / 1.03 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.514e-05/0.9103, allocations: 4 kB / 1.03 GB, free: 8.551 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.002081/0.9123, allocations: 1.063 MB / 1.031 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.9124, allocations: 8.031 kB / 1.031 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.9126, allocations: 102.8 kB / 1.031 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.9136, allocations: 0.5784 MB / 1.031 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.9138, allocations: 100.3 kB / 1.032 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.222e-05/0.9139, allocations: 55.95 kB / 1.032 GB, free: 6.535 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.915, allocations: 0.608 MB / 1.032 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.915, allocations: 0 / 1.032 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.188e-05/0.9151, allocations: 20 kB / 1.032 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.9151, allocations: 16 kB / 1.032 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009434/0.916, allocations: 439.6 kB / 1.033 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.9188, allocations: 2.129 MB / 1.035 GB, free: 3.203 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.92, allocations: 0.5185 MB / 1.035 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004566/0.9205, allocations: 223 kB / 1.035 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-05/0.9205, allocations: 19.94 kB / 1.036 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007143/0.9213, allocations: 293.9 kB / 1.036 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 2.665e-06/0.9213, allocations: 0 / 1.036 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001449/0.9227, allocations: 0.6347 MB / 1.036 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.9228, allocations: 88.86 kB / 1.036 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007202/0.9236, allocations: 0.6022 MB / 1.037 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.9236, allocations: 41.64 kB / 1.037 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.9239, allocations: 352.8 kB / 1.037 GB, free: 392 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.9241, allocations: 157.7 kB / 1.038 GB, free: 232 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.9241, allocations: 12 kB / 1.038 GB, free: 220 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9242, allocations: 326 kB / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.9247, allocations: 181 kB / 1.038 GB, free: 15.71 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004814/0.9252, allocations: 284.2 kB / 1.038 GB, free: 15.4 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004762/0.9257, allocations: 238.4 kB / 1.039 GB, free: 15.17 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.9257, allocations: 4 kB / 1.039 GB, free: 15.16 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001177/0.9269, allocations: 0.606 MB / 1.039 GB, free: 14.54 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.927, allocations: 201.3 kB / 1.039 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.927, allocations: 4 kB / 1.039 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.9271, allocations: 4 kB / 1.039 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.9275, allocations: 107.9 kB / 1.039 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.661e-05/0.9276, allocations: 11.92 kB / 1.04 GB, free: 14.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.928, allocations: 71.5 kB / 1.04 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.052e-05/0.9281, allocations: 25.08 kB / 1.04 GB, free: 14.09 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.9281, allocations: 4 kB / 1.04 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001116/0.9292, allocations: 0.4998 MB / 1.04 GB, free: 13.57 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.9292, allocations: 4 kB / 1.04 GB, free: 13.57 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.9292, allocations: 8 kB / 1.04 GB, free: 13.56 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000451/0.9297, allocations: 112.1 kB / 1.04 GB, free: 13.45 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.9297, allocations: 11.94 kB / 1.04 GB, free: 13.44 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.9301, allocations: 55.52 kB / 1.04 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/0.9302, allocations: 20 kB / 1.04 GB, free: 13.37 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004283/0.9306, allocations: 284.9 kB / 1.041 GB, free: 13.08 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.9307, allocations: 75 kB / 1.041 GB, free: 13 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001902/0.9309, allocations: 83.22 kB / 1.041 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.9309, allocations: 4 kB / 1.041 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.9309, allocations: 3.953 kB / 1.041 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.931, allocations: 3.984 kB / 1.041 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000865/0.9318, allocations: 0.6141 MB / 1.041 GB, free: 12.24 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.9318, allocations: 0 / 1.041 GB, free: 12.24 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.9323, allocations: 91.88 kB / 1.041 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.9323, allocations: 4 kB / 1.041 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.9324, allocations: 12 kB / 1.041 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.9324, allocations: 4 kB / 1.041 GB, free: 12.13 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.9324, allocations: 0 / 1.041 GB, free: 12.13 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.934, allocations: 0.7512 MB / 1.042 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.9342, allocations: 192 kB / 1.042 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.67e-05/0.9343, allocations: 12 kB / 1.042 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.9347, allocations: 43.95 kB / 1.042 GB, free: 11.1 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.9348, allocations: 35.95 kB / 1.042 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.9349, allocations: 15.98 kB / 1.042 GB, free: 11.05 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005547/0.9354, allocations: 431 kB / 1.043 GB, free: 10.63 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9354, allocations: 0 / 1.043 GB, free: 10.63 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006439/0.9361, allocations: 211.4 kB / 1.043 GB, free: 10.43 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.9362, allocations: 107.2 kB / 1.043 GB, free: 10.31 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001627/0.9379, allocations: 0.8082 MB / 1.044 GB, free: 9.484 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9379, allocations: 4 kB / 1.044 GB, free: 9.48 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.9384, allocations: 224.7 kB / 1.044 GB, free: 9.262 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008864/0.9393, allocations: 181.2 kB / 1.044 GB, free: 9.086 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.9416, allocations: 1.381 MB / 1.046 GB, free: 7.672 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.9422, allocations: 0.9222 MB / 1.047 GB, free: 6.723 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004122/0.9426, allocations: 89.12 kB / 1.047 GB, free: 6.637 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.9428, allocations: 47.42 kB / 1.047 GB, free: 6.59 MB / 0.795 GB Notification: Performance of SimCode: time 4.01e-07/0.9428, allocations: 0 / 1.047 GB, free: 6.59 MB / 0.795 GB Notification: Performance of Templates: time 0.01534/0.9581, allocations: 6.904 MB / 1.053 GB, free: 15.77 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=480 -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