Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008256/0.0008256, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007996/0.0007996, allocations: 177.9 kB / 23.22 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9214/0.9214, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.816/1.816, allocations: 377.8 MB / 0.6228 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPID") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.574e-06/2.574e-06, allocations: 0 / 0.9822 GB, free: 2.129 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.063e-05/3.32e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.125 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004173/0.004206, allocations: 3.367 MB / 0.9854 GB, free: 14.73 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.002017/0.006223, allocations: 1.336 MB / 0.9867 GB, free: 13.39 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003047/0.006528, allocations: 35.69 kB / 0.9868 GB, free: 13.36 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002796/0.006808, allocations: 130.6 kB / 0.9869 GB, free: 13.23 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.007228, allocations: 188.4 kB / 0.9871 GB, free: 13.04 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007212/0.007949, allocations: 0.5763 MB / 0.9876 GB, free: 12.48 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0006984/0.008647, allocations: 0.9797 MB / 0.9886 GB, free: 11.5 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003434/0.008991, allocations: 230.3 kB / 0.9888 GB, free: 11.26 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000424/0.009415, allocations: 0.5026 MB / 0.9893 GB, free: 10.75 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002632/0.009678, allocations: 267 kB / 0.9896 GB, free: 10.49 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 7.752e-05/0.009755, allocations: 76 kB / 0.9896 GB, free: 10.42 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.606e-05/0.009821, allocations: 80 kB / 0.9897 GB, free: 10.34 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.009929, allocations: 187.2 kB / 0.9899 GB, free: 10.16 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.01009, allocations: 235.2 kB / 0.9901 GB, free: 9.926 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.000797/0.01088, allocations: 0.9226 MB / 0.991 GB, free: 9 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.01089, allocations: 3.938 kB / 0.991 GB, free: 8.996 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.533e-06/0.01089, allocations: 4 kB / 0.991 GB, free: 8.992 MB / 0.948 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.0109, allocations: 3.938 kB / 0.991 GB, free: 8.988 MB / 0.948 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.001335/0.01223, allocations: 1.123 MB / 0.9921 GB, free: 7.824 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.01227, allocations: 12.03 kB / 0.9921 GB, free: 7.812 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.01239, allocations: 96.33 kB / 0.9922 GB, free: 7.719 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006888/0.01308, allocations: 0.5693 MB / 0.9928 GB, free: 7.121 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.812e-05/0.01318, allocations: 144.4 kB / 0.9929 GB, free: 6.957 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.01325, allocations: 64.31 kB / 0.993 GB, free: 6.895 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007285/0.01398, allocations: 0.7561 MB / 0.9937 GB, free: 6.055 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.01399, allocations: 4.125 kB / 0.9937 GB, free: 6.051 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.01403, allocations: 28.12 kB / 0.9938 GB, free: 6.023 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.01404, allocations: 12 kB / 0.9938 GB, free: 6.012 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005686/0.01461, allocations: 431.6 kB / 0.9942 GB, free: 5.594 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.01626, allocations: 1.807 MB / 0.9959 GB, free: 3.723 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007384/0.01699, allocations: 491.6 kB / 0.9964 GB, free: 3.23 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.01728, allocations: 208.7 kB / 0.9966 GB, free: 3.023 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.01731, allocations: 8 kB / 0.9966 GB, free: 3.016 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004156/0.01773, allocations: 337.3 kB / 0.9969 GB, free: 2.66 MB / 0.948 GB Notification: Performance of pre-optimization done (n=45): time 2.435e-06/0.01773, allocations: 0 / 0.9969 GB, free: 2.66 MB / 0.948 GB Notification: Performance of matching and sorting (n=45): time 0.0009766/0.01871, allocations: 0.6194 MB / 0.9975 GB, free: 2.035 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.01877, allocations: 114.6 kB / 0.9977 GB, free: 1.898 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.01919, allocations: 0.5717 MB / 0.9982 GB, free: 1.32 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.01923, allocations: 37.7 kB / 0.9983 GB, free: 1.277 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.01942, allocations: 369.1 kB / 0.9986 GB, free: 0.9102 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.33e-05/0.0195, allocations: 154.7 kB / 0.9988 GB, free: 0.7578 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.92e-05/0.0196, allocations: 102.3 kB / 0.9989 GB, free: 0.6523 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.01972, allocations: 382.8 kB / 0.9992 GB, free: 276 kB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.01999, allocations: 209.1 kB / 0.9994 GB, free: 60 kB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.02032, allocations: 367.2 kB / 0.9998 GB, free: 15.64 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/0.02087, allocations: 482.9 kB / 1 GB, free: 15.13 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.02087, allocations: 0 / 1 GB, free: 15.13 MB / 0.9636 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007107/0.02158, allocations: 0.6369 MB / 1.001 GB, free: 14.48 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.02162, allocations: 37.64 kB / 1.001 GB, free: 14.43 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.02163, allocations: 0 / 1.001 GB, free: 14.43 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.02165, allocations: 8 kB / 1.001 GB, free: 14.43 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.02188, allocations: 103.9 kB / 1.001 GB, free: 14.32 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.0219, allocations: 11.92 kB / 1.001 GB, free: 14.31 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.02209, allocations: 67.89 kB / 1.001 GB, free: 14.25 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.02211, allocations: 19.94 kB / 1.001 GB, free: 14.23 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000357/0.02247, allocations: 339.1 kB / 1.001 GB, free: 13.89 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002954/0.02276, allocations: 355.2 kB / 1.002 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004986/0.02326, allocations: 458.9 kB / 1.002 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.485e-06/0.02326, allocations: 8 kB / 1.002 GB, free: 12.98 MB / 0.9636 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0006473/0.02391, allocations: 0.5979 MB / 1.003 GB, free: 12.37 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.02393, allocations: 38.02 kB / 1.003 GB, free: 12.33 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-06/0.02394, allocations: 4 kB / 1.003 GB, free: 12.32 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.141e-06/0.02394, allocations: 15.92 kB / 1.003 GB, free: 12.31 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.02416, allocations: 99.83 kB / 1.003 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.02416, allocations: 7.984 kB / 1.003 GB, free: 12.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.02435, allocations: 55.7 kB / 1.003 GB, free: 12.15 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.02437, allocations: 20 kB / 1.003 GB, free: 12.13 MB / 0.9636 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.000121/0.02449, allocations: 212.1 kB / 1.003 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.02455, allocations: 83.53 kB / 1.003 GB, free: 11.83 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.78e-05/0.02464, allocations: 74.7 kB / 1.003 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.02464, allocations: 4 kB / 1.003 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.02465, allocations: 0 / 1.003 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.02466, allocations: 3.984 kB / 1.003 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.02502, allocations: 456.9 kB / 1.004 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.02503, allocations: 0 / 1.004 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.02526, allocations: 87.88 kB / 1.004 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.02526, allocations: 3.938 kB / 1.004 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.02528, allocations: 12 kB / 1.004 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.02528, allocations: 3.938 kB / 1.004 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.02529, allocations: 0 / 1.004 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.0263, allocations: 0.7322 MB / 1.005 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.02644, allocations: 115.4 kB / 1.005 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.143e-05/0.02648, allocations: 12 kB / 1.005 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.02666, allocations: 43.83 kB / 1.005 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.02673, allocations: 31.94 kB / 1.005 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.02675, allocations: 15.98 kB / 1.005 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002907/0.02704, allocations: 403.1 kB / 1.005 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.02704, allocations: 0 / 1.005 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0003848/0.02742, allocations: 231.4 kB / 1.005 GB, free: 9.582 MB / 0.9636 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.0001198/0.02754, allocations: 115.7 kB / 1.006 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0009338/0.02848, allocations: 0.8045 MB / 1.006 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.02848, allocations: 4 kB / 1.006 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.02874, allocations: 204.8 kB / 1.007 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005125/0.02925, allocations: 200.8 kB / 1.007 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.03065, allocations: 1.202 MB / 1.008 GB, free: 6.992 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.03084, allocations: 318.9 kB / 1.008 GB, free: 6.652 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.03096, allocations: 48.5 kB / 1.008 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of SimCode: time 6.71e-07/0.03096, allocations: 0 / 1.008 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of Templates: time 0.007913/0.03888, allocations: 8.932 MB / 1.017 GB, free: 13.72 MB / 0.9792 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.465026241727173]