Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001671/0.001672, allocations: 112.6 kB / 16.37 MB, free: 6 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.001884/0.001884, allocations: 196 kB / 17.31 MB, free: 5.613 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.226/2.226, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 65.05 kB / 0.814 GB, free: 32.67 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2713, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004879/0.2762, allocations: 3.712 MB / 0.9547 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002549/0.2788, allocations: 1.332 MB / 0.956 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003568/0.2792, allocations: 27.81 kB / 0.9561 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003295/0.2795, allocations: 126.6 kB / 0.9562 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004676/0.2801, allocations: 174.5 kB / 0.9564 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.2812, allocations: 0.5723 MB / 0.9569 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0009129/0.2821, allocations: 0.9643 MB / 0.9579 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005238/0.2827, allocations: 353.5 kB / 0.9582 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/0.2831, allocations: 362.4 kB / 0.9585 GB, free: 464 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.2834, allocations: 350.1 kB / 0.9589 GB, free: 112 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.2835, allocations: 76 kB / 0.9589 GB, free: 36 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2836, allocations: 80.05 kB / 0.959 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.2838, allocations: 179.2 kB / 0.9592 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.2841, allocations: 377.7 kB / 0.9596 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007417/0.2848, allocations: 0.895 MB / 0.9604 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2848, allocations: 0 / 0.9604 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2849, allocations: 4 kB / 0.9604 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.287e-06/0.2849, allocations: 0 / 0.9604 GB, free: 14.51 MB / 0.7481 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.001931/0.2868, allocations: 1.179 MB / 0.9616 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2869, allocations: 12.03 kB / 0.9616 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.287, allocations: 91.81 kB / 0.9617 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009429/0.288, allocations: 0.6221 MB / 0.9623 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.2881, allocations: 101 kB / 0.9624 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.842e-05/0.2882, allocations: 52.28 kB / 0.9624 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2892, allocations: 0.6041 MB / 0.963 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.2892, allocations: 4 kB / 0.963 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/0.2893, allocations: 20 kB / 0.963 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.2893, allocations: 16 kB / 0.9631 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009062/0.2902, allocations: 419.7 kB / 0.9635 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.2928, allocations: 2.102 MB / 0.9655 GB, free: 9.059 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.2941, allocations: 0.4973 MB / 0.966 GB, free: 8.551 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.2945, allocations: 220.7 kB / 0.9662 GB, free: 8.332 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.2946, allocations: 8 kB / 0.9662 GB, free: 8.324 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006445/0.2952, allocations: 281.9 kB / 0.9665 GB, free: 8.035 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=45): time 2.174e-06/0.2952, allocations: 0 / 0.9665 GB, free: 8.035 MB / 0.7481 GB Notification: Performance of matching and sorting (n=45): time 0.001391/0.2966, allocations: 0.6113 MB / 0.9671 GB, free: 7.418 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.2967, allocations: 88.86 kB / 0.9672 GB, free: 7.312 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006786/0.2974, allocations: 0.6099 MB / 0.9678 GB, free: 6.691 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.465e-05/0.2975, allocations: 41.7 kB / 0.9678 GB, free: 6.645 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002593/0.2977, allocations: 352.8 kB / 0.9681 GB, free: 6.297 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2979, allocations: 153.7 kB / 0.9683 GB, free: 6.145 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.298, allocations: 102.2 kB / 0.9684 GB, free: 6.039 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2982, allocations: 322 kB / 0.9687 GB, free: 5.719 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000413/0.2986, allocations: 191 kB / 0.9689 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004612/0.299, allocations: 273.3 kB / 0.9691 GB, free: 5.227 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008468/0.2999, allocations: 477.9 kB / 0.9696 GB, free: 4.723 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.2999, allocations: 3.938 kB / 0.9696 GB, free: 4.719 MB / 0.7481 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001105/0.301, allocations: 0.5982 MB / 0.9702 GB, free: 4.105 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.3011, allocations: 33.7 kB / 0.9702 GB, free: 4.066 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3011, allocations: 8.312 kB / 0.9702 GB, free: 4.059 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.3011, allocations: 4 kB / 0.9702 GB, free: 4.055 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004516/0.3016, allocations: 111.8 kB / 0.9703 GB, free: 3.945 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3016, allocations: 8 kB / 0.9703 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.302, allocations: 63.41 kB / 0.9704 GB, free: 3.875 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.302, allocations: 23.94 kB / 0.9704 GB, free: 3.852 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005193/0.3025, allocations: 313.2 kB / 0.9707 GB, free: 3.543 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004142/0.303, allocations: 260.3 kB / 0.971 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007663/0.3037, allocations: 454 kB / 0.9714 GB, free: 2.766 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.967e-06/0.3037, allocations: 4 kB / 0.9714 GB, free: 2.762 MB / 0.7481 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001015/0.3048, allocations: 0.5786 MB / 0.972 GB, free: 2.172 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.3048, allocations: 35.89 kB / 0.972 GB, free: 2.133 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.3048, allocations: 0 / 0.972 GB, free: 2.133 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.842e-06/0.3048, allocations: 4 kB / 0.972 GB, free: 2.129 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004437/0.3053, allocations: 112.1 kB / 0.9721 GB, free: 2.02 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3053, allocations: 8 kB / 0.9721 GB, free: 2.012 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.3056, allocations: 51.66 kB / 0.9722 GB, free: 1.961 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.3057, allocations: 16 kB / 0.9722 GB, free: 1.945 MB / 0.7481 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.0001821/0.3059, allocations: 217.9 kB / 0.9724 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-05/0.306, allocations: 75.06 kB / 0.9725 GB, free: 1.652 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001521/0.3061, allocations: 83.2 kB / 0.9725 GB, free: 1.566 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3061, allocations: 8 kB / 0.9726 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.3061, allocations: 0 / 0.9726 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3062, allocations: 0 / 0.9726 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006359/0.3068, allocations: 0.6257 MB / 0.9732 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3068, allocations: 0 / 0.9732 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004504/0.3073, allocations: 83.89 kB / 0.9732 GB, free: 0.8008 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.3073, allocations: 0 / 0.9732 GB, free: 0.8008 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.3073, allocations: 11.98 kB / 0.9733 GB, free: 0.7891 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3073, allocations: 0 / 0.9733 GB, free: 0.7891 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3073, allocations: 0 / 0.9733 GB, free: 0.7891 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.3087, allocations: 0.7314 MB / 0.974 GB, free: 36 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.309, allocations: 196.1 kB / 0.9742 GB, free: 15.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.343e-05/0.3091, allocations: 12 kB / 0.9742 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.3095, allocations: 31.91 kB / 0.9742 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.3096, allocations: 35.89 kB / 0.9742 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.003e-05/0.3096, allocations: 20.11 kB / 0.9743 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004583/0.3101, allocations: 435 kB / 0.9747 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3101, allocations: 0 / 0.9747 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0005816/0.3107, allocations: 215.3 kB / 0.9749 GB, free: 15.1 MB / 0.7637 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.0001427/0.3108, allocations: 115.2 kB / 0.975 GB, free: 14.98 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001466/0.3123, allocations: 0.7848 MB / 0.9757 GB, free: 14.17 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3123, allocations: 0 / 0.9757 GB, free: 14.17 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004352/0.3127, allocations: 216.7 kB / 0.976 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008181/0.3136, allocations: 205.1 kB / 0.9762 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.3155, allocations: 1.187 MB / 0.9773 GB, free: 12.55 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.316, allocations: 0.9218 MB / 0.9782 GB, free: 11.6 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003351/0.3163, allocations: 93.11 kB / 0.9783 GB, free: 11.51 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.3165, allocations: 43.44 kB / 0.9783 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of SimCode: time 4.2e-07/0.3165, allocations: 0 / 0.9783 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of Templates: time 0.01321/0.3297, allocations: 7.569 MB / 0.9857 GB, free: 3.98 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches