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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001547/0.001547, allocations: 103.3 kB / 16.27 MB, free: 6.418 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.001779/0.001779, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.328/1.328, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 390.3 MB / 0.6653 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 68.41 kB / 0.8132 GB, free: 33.05 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2772, allocations: 140.4 MB / 0.9503 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005439/0.2826, allocations: 3.709 MB / 0.9539 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002769/0.2854, allocations: 1.325 MB / 0.9552 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006884/0.2862, allocations: 27.88 kB / 0.9552 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004056/0.2866, allocations: 126.6 kB / 0.9553 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0007567/0.2874, allocations: 178.5 kB / 0.9555 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001324/0.2888, allocations: 0.5726 MB / 0.9561 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001322/0.2901, allocations: 0.9643 MB / 0.957 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006022/0.2907, allocations: 349.6 kB / 0.9573 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005/0.2912, allocations: 358.4 kB / 0.9577 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004536/0.2917, allocations: 354 kB / 0.958 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.2919, allocations: 84 kB / 0.9581 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.292, allocations: 76 kB / 0.9582 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.2922, allocations: 183.2 kB / 0.9583 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003357/0.2925, allocations: 373.7 kB / 0.9587 GB, free: 200 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008403/0.2934, allocations: 0.8528 MB / 0.9595 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2934, allocations: 0 / 0.9595 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2934, allocations: 0 / 0.9595 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.299e-05/0.2934, allocations: 4 kB / 0.9595 GB, free: 15.34 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.002284/0.2957, allocations: 1.187 MB / 0.9607 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2958, allocations: 8.031 kB / 0.9607 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.296, allocations: 91.81 kB / 0.9608 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009273/0.2969, allocations: 0.5909 MB / 0.9614 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.297, allocations: 108.8 kB / 0.9615 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.2971, allocations: 64.22 kB / 0.9615 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.2982, allocations: 0.5964 MB / 0.9621 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.2983, allocations: 0 / 0.9621 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.675e-05/0.2983, allocations: 23.98 kB / 0.9621 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.2983, allocations: 12 kB / 0.9621 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009578/0.2993, allocations: 423.7 kB / 0.9625 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/0.3021, allocations: 2.118 MB / 0.9646 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3033, allocations: 0.4951 MB / 0.9651 GB, free: 9.379 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004599/0.3038, allocations: 216.8 kB / 0.9653 GB, free: 9.164 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.3038, allocations: 4 kB / 0.9653 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006964/0.3045, allocations: 286.1 kB / 0.9656 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=45): time 2.615e-06/0.3045, allocations: 0 / 0.9656 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of matching and sorting (n=45): time 0.00152/0.3061, allocations: 0.6061 MB / 0.9662 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.3061, allocations: 96.84 kB / 0.9663 GB, free: 8.141 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007364/0.3069, allocations: 0.6099 MB / 0.9669 GB, free: 7.52 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3069, allocations: 33.7 kB / 0.9669 GB, free: 7.48 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.3072, allocations: 364.7 kB / 0.9672 GB, free: 7.121 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.3073, allocations: 153.7 kB / 0.9674 GB, free: 6.969 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.3075, allocations: 94.23 kB / 0.9675 GB, free: 6.871 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.3076, allocations: 323.1 kB / 0.9678 GB, free: 6.551 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.308, allocations: 187 kB / 0.968 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/0.3085, allocations: 276.2 kB / 0.9682 GB, free: 6.059 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009166/0.3095, allocations: 477.9 kB / 0.9687 GB, free: 5.551 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-06/0.3095, allocations: 3.938 kB / 0.9687 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001205/0.3107, allocations: 0.6022 MB / 0.9693 GB, free: 4.93 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.283e-05/0.3108, allocations: 36.2 kB / 0.9693 GB, free: 4.891 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3108, allocations: 3.938 kB / 0.9693 GB, free: 4.887 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3108, allocations: 4 kB / 0.9693 GB, free: 4.883 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.3113, allocations: 115.8 kB / 0.9694 GB, free: 4.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.3113, allocations: 4 kB / 0.9694 GB, free: 4.766 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004475/0.3118, allocations: 63.41 kB / 0.9695 GB, free: 4.703 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.3118, allocations: 24.16 kB / 0.9695 GB, free: 4.68 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000589/0.3124, allocations: 309.2 kB / 0.9698 GB, free: 4.375 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004522/0.3129, allocations: 272.2 kB / 0.9701 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008369/0.3137, allocations: 450 kB / 0.9705 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.555e-06/0.3137, allocations: 0 / 0.9705 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001141/0.3149, allocations: 0.5786 MB / 0.9711 GB, free: 2.996 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.3149, allocations: 33.7 kB / 0.9711 GB, free: 2.957 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.3149, allocations: 4.25 kB / 0.9711 GB, free: 2.953 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.727e-06/0.315, allocations: 12 kB / 0.9711 GB, free: 2.941 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.3154, allocations: 103.8 kB / 0.9712 GB, free: 2.84 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.3154, allocations: 4 kB / 0.9712 GB, free: 2.836 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004213/0.3158, allocations: 51.66 kB / 0.9713 GB, free: 2.785 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.3159, allocations: 16 kB / 0.9713 GB, free: 2.77 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.0002458/0.3162, allocations: 220 kB / 0.9715 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3163, allocations: 75.06 kB / 0.9716 GB, free: 2.473 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001645/0.3164, allocations: 83.2 kB / 0.9716 GB, free: 2.387 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3164, allocations: 4 kB / 0.9716 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.3165, allocations: 0 / 0.9716 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3165, allocations: 0 / 0.9716 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006472/0.3171, allocations: 0.6257 MB / 0.9723 GB, free: 1.707 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3171, allocations: 0 / 0.9723 GB, free: 1.707 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000456/0.3176, allocations: 79.89 kB / 0.9723 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3176, allocations: 0 / 0.9723 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.425e-05/0.3176, allocations: 16 kB / 0.9723 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.3177, allocations: 7.984 kB / 0.9724 GB, free: 1.605 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3177, allocations: 0 / 0.9724 GB, free: 1.605 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.3191, allocations: 0.7286 MB / 0.9731 GB, free: 0.8594 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.3193, allocations: 188.1 kB / 0.9732 GB, free: 0.6562 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.578e-05/0.3194, allocations: 15.92 kB / 0.9733 GB, free: 0.6406 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003985/0.3198, allocations: 35.97 kB / 0.9733 GB, free: 0.6055 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3199, allocations: 27.95 kB / 0.9733 GB, free: 0.5781 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.32, allocations: 19.98 kB / 0.9733 GB, free: 0.5586 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004526/0.3204, allocations: 431 kB / 0.9738 GB, free: 148 kB / 0.7481 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3204, allocations: 0 / 0.9738 GB, free: 148 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000613/0.3211, allocations: 219.3 kB / 0.974 GB, free: 15.93 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.0001429/0.3212, allocations: 111.3 kB / 0.9741 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001647/0.3229, allocations: 0.8087 MB / 0.9749 GB, free: 14.98 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3229, allocations: 0 / 0.9749 GB, free: 14.98 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004402/0.3233, allocations: 215.9 kB / 0.9751 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000879/0.3242, allocations: 214 kB / 0.9753 GB, free: 14.57 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.3262, allocations: 1.224 MB / 0.9765 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3266, allocations: 0.9256 MB / 0.9774 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.3268, allocations: 51.42 kB / 0.9774 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of SimCode: time 4.21e-07/0.3268, allocations: 0 / 0.9774 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of Templates: time 0.01269/0.3395, allocations: 8.636 MB / 0.9859 GB, free: 3.703 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 -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