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.001816/0.001816, allocations: 100.1 kB / 15.88 MB, free: 8 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002256/0.002256, allocations: 197.8 kB / 16.79 MB, free: 6.828 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.384/1.384, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.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.531/2.531, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 75.86 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6829/0.6843, allocations: 140.3 MB / 0.9496 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004124/0.6885, allocations: 3.721 MB / 0.9532 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001935/0.6904, allocations: 1.298 MB / 0.9545 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000314/0.6907, allocations: 25.12 kB / 0.9545 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.691, allocations: 91.77 kB / 0.9546 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.6915, allocations: 135.6 kB / 0.9547 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008937/0.6924, allocations: 0.5377 MB / 0.9552 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006916/0.6931, allocations: 0.893 MB / 0.9561 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004317/0.6935, allocations: 343.2 kB / 0.9564 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003105/0.6938, allocations: 323.1 kB / 0.9567 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.6941, allocations: 325.2 kB / 0.9571 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.605e-05/0.6942, allocations: 40.44 kB / 0.9571 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.607e-05/0.6943, allocations: 41.31 kB / 0.9571 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.6944, allocations: 143 kB / 0.9573 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.6946, allocations: 335.1 kB / 0.9576 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004187/0.695, allocations: 0.6426 MB / 0.9582 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.695, allocations: 0 / 0.9582 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.62e-07/0.695, allocations: 0 / 0.9582 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.6951, allocations: 1.812 kB / 0.9582 GB, free: 2.512 MB / 0.7169 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.001794/0.6969, allocations: 1.179 MB / 0.9594 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.6969, allocations: 9.625 kB / 0.9594 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.697, allocations: 93.19 kB / 0.9595 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007697/0.6978, allocations: 0.5955 MB / 0.96 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.121e-05/0.6979, allocations: 101.3 kB / 0.9601 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.842e-05/0.698, allocations: 51.75 kB / 0.9602 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000997/0.699, allocations: 0.6085 MB / 0.9608 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.699, allocations: 0.75 kB / 0.9608 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.99e-05/0.6991, allocations: 21.56 kB / 0.9608 GB, free: 492 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.6991, allocations: 12.56 kB / 0.9608 GB, free: 492 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009083/0.7, allocations: 427.2 kB / 0.9612 GB, free: 284 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002755/0.7028, allocations: 2.112 MB / 0.9633 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.704, allocations: 0.4993 MB / 0.9638 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.7045, allocations: 213.6 kB / 0.964 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.7045, allocations: 9.312 kB / 0.964 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007102/0.7053, allocations: 291.9 kB / 0.9643 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 1.953e-06/0.7053, allocations: 4 kB / 0.9643 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001497/0.7068, allocations: 0.6056 MB / 0.9649 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.7068, allocations: 86.92 kB / 0.9649 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.7076, allocations: 0.6145 MB / 0.9655 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.7076, allocations: 36.27 kB / 0.9656 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.7079, allocations: 354.6 kB / 0.9659 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.708, allocations: 151.7 kB / 0.9661 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.7082, allocations: 103.6 kB / 0.9662 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.7083, allocations: 327 kB / 0.9665 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.7088, allocations: 184.9 kB / 0.9667 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/0.7093, allocations: 276 kB / 0.9669 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/0.7103, allocations: 470.5 kB / 0.9674 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.7103, allocations: 9.188 kB / 0.9674 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001203/0.7115, allocations: 0.5969 MB / 0.968 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.7115, allocations: 36.92 kB / 0.968 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.7115, allocations: 2.594 kB / 0.968 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.7116, allocations: 8.484 kB / 0.968 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.7121, allocations: 108.4 kB / 0.9681 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.7121, allocations: 6.469 kB / 0.9681 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003967/0.7125, allocations: 69.12 kB / 0.9682 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/0.7125, allocations: 21.45 kB / 0.9682 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005654/0.7131, allocations: 316.2 kB / 0.9685 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000459/0.7136, allocations: 269 kB / 0.9688 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008653/0.7144, allocations: 453 kB / 0.9692 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.781e-06/0.7145, allocations: 1.312 kB / 0.9692 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001144/0.7156, allocations: 0.5794 MB / 0.9698 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.7156, allocations: 33.08 kB / 0.9698 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.7157, allocations: 6.547 kB / 0.9698 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.235e-06/0.7157, allocations: 5.5 kB / 0.9698 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.7161, allocations: 109.8 kB / 0.9699 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.7161, allocations: 4.031 kB / 0.9699 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003803/0.7165, allocations: 54.25 kB / 0.97 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.7166, allocations: 17.25 kB / 0.97 GB, free: 10.13 MB / 0.7325 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.0001706/0.7168, allocations: 214.3 kB / 0.9702 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.7169, allocations: 73.25 kB / 0.9702 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.717, allocations: 86.17 kB / 0.9703 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.717, allocations: 4.5 kB / 0.9703 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.717, allocations: 0 / 0.9703 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.7171, allocations: 1.5 kB / 0.9703 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007307/0.7178, allocations: 0.6256 MB / 0.9709 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.7178, allocations: 0 / 0.9709 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.7183, allocations: 81.11 kB / 0.971 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.7183, allocations: 2.312 kB / 0.971 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.139e-05/0.7184, allocations: 12.05 kB / 0.971 GB, free: 9.273 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.7184, allocations: 4.812 kB / 0.971 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.7184, allocations: 0 / 0.971 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.7201, allocations: 0.7298 MB / 0.9718 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.7204, allocations: 188.4 kB / 0.9719 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.7205, allocations: 11.09 kB / 0.9719 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.7209, allocations: 29.44 kB / 0.972 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.721, allocations: 31.11 kB / 0.972 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.7211, allocations: 18.42 kB / 0.972 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006102/0.7217, allocations: 437 kB / 0.9724 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7217, allocations: 0 / 0.9724 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007679/0.7225, allocations: 219.8 kB / 0.9726 GB, free: 8.332 MB / 0.7325 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.0001759/0.7227, allocations: 109.4 kB / 0.9728 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001698/0.7244, allocations: 0.7847 MB / 0.9735 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.7244, allocations: 1 kB / 0.9735 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000509/0.7249, allocations: 220.8 kB / 0.9737 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009702/0.7259, allocations: 188.9 kB / 0.9739 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.7285, allocations: 1.48 MB / 0.9754 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005271/0.729, allocations: 0.9205 MB / 0.9763 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.7292, allocations: 55.98 kB / 0.9763 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of SimCode: time 8.81e-07/0.7292, allocations: 1.5 kB / 0.9763 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of Templates: time 0.01486/0.7441, allocations: 8.624 MB / 0.9847 GB, free: 13.45 MB / 0.7481 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