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.001393/0.001393, allocations: 106.1 kB / 15.98 MB, free: 6.285 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.001589/0.001589, allocations: 200.9 kB / 16.91 MB, free: 6.141 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 15.37 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.33/2.33, allocations: 390.2 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 70.27 kB / 0.8127 GB, free: 33.25 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.285, allocations: 140.4 MB / 0.9498 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005395/0.2904, allocations: 3.733 MB / 0.9534 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002795/0.2933, allocations: 1.282 MB / 0.9547 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007664/0.2941, allocations: 27.81 kB / 0.9547 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004187/0.2945, allocations: 95.09 kB / 0.9548 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0008227/0.2954, allocations: 135.1 kB / 0.9549 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.2966, allocations: 0.5338 MB / 0.9554 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001258/0.2979, allocations: 0.972 MB / 0.9564 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000585/0.2985, allocations: 349.6 kB / 0.9567 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005235/0.299, allocations: 370.3 kB / 0.9571 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003355/0.2994, allocations: 354.1 kB / 0.9574 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.892e-05/0.2995, allocations: 76 kB / 0.9575 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.2996, allocations: 80 kB / 0.9575 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.2997, allocations: 179.2 kB / 0.9577 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.3, allocations: 377.7 kB / 0.9581 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.3006, allocations: 0.6591 MB / 0.9587 GB, free: 40 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3006, allocations: 3.984 kB / 0.9587 GB, free: 36 kB / 0.7325 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3007, allocations: 0 / 0.9587 GB, free: 36 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.554e-05/0.3007, allocations: 0 / 0.9587 GB, free: 36 kB / 0.7325 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.00188/0.3026, allocations: 1.176 MB / 0.9599 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3026, allocations: 12.03 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.3028, allocations: 95.81 kB / 0.96 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008392/0.3036, allocations: 0.6025 MB / 0.9606 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.964e-05/0.3037, allocations: 92.97 kB / 0.9606 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/0.3038, allocations: 56.28 kB / 0.9607 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3049, allocations: 0.6003 MB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.3049, allocations: 4 kB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.373e-05/0.305, allocations: 27.94 kB / 0.9613 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.305, allocations: 12 kB / 0.9613 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008776/0.3059, allocations: 419.7 kB / 0.9617 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.3084, allocations: 2.118 MB / 0.9638 GB, free: 10.6 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.3095, allocations: 0.5029 MB / 0.9643 GB, free: 10.08 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004383/0.31, allocations: 226.6 kB / 0.9645 GB, free: 9.859 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.3101, allocations: 8 kB / 0.9645 GB, free: 9.852 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007017/0.3108, allocations: 270.2 kB / 0.9648 GB, free: 9.574 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.3108, allocations: 3.938 kB / 0.9648 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of matching and sorting (n=45): time 0.001426/0.3122, allocations: 0.6178 MB / 0.9654 GB, free: 8.945 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.3123, allocations: 84.86 kB / 0.9655 GB, free: 8.844 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007064/0.313, allocations: 0.6138 MB / 0.9661 GB, free: 8.219 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.313, allocations: 37.7 kB / 0.9661 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.3133, allocations: 356.8 kB / 0.9664 GB, free: 7.824 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.3134, allocations: 158.7 kB / 0.9666 GB, free: 7.668 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.3136, allocations: 94.25 kB / 0.9667 GB, free: 7.57 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.3137, allocations: 326 kB / 0.967 GB, free: 7.246 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.3142, allocations: 179 kB / 0.9672 GB, free: 7.07 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004753/0.3146, allocations: 276.2 kB / 0.9674 GB, free: 6.762 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008991/0.3155, allocations: 481.9 kB / 0.9679 GB, free: 6.25 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3156, allocations: 7.938 kB / 0.9679 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001162/0.3167, allocations: 0.5943 MB / 0.9685 GB, free: 5.633 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.3168, allocations: 41.62 kB / 0.9685 GB, free: 5.586 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.3168, allocations: 4 kB / 0.9685 GB, free: 5.582 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3168, allocations: 4.312 kB / 0.9685 GB, free: 5.578 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.3173, allocations: 107.9 kB / 0.9686 GB, free: 5.473 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.3173, allocations: 7.938 kB / 0.9686 GB, free: 5.465 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003758/0.3177, allocations: 67.41 kB / 0.9687 GB, free: 5.398 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.3177, allocations: 16 kB / 0.9687 GB, free: 5.383 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005133/0.3183, allocations: 312.7 kB / 0.969 GB, free: 5.078 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004258/0.3187, allocations: 264.3 kB / 0.9693 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007951/0.3195, allocations: 462 kB / 0.9697 GB, free: 4.293 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.857e-06/0.3195, allocations: 0 / 0.9697 GB, free: 4.293 MB / 0.7481 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001032/0.3206, allocations: 0.5747 MB / 0.9703 GB, free: 3.703 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.3206, allocations: 37.69 kB / 0.9703 GB, free: 3.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3206, allocations: 4 kB / 0.9703 GB, free: 3.656 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.763e-06/0.3206, allocations: 4 kB / 0.9703 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.321, allocations: 99.83 kB / 0.9704 GB, free: 3.555 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.321, allocations: 11.98 kB / 0.9704 GB, free: 3.543 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.3214, allocations: 47.95 kB / 0.9705 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.3214, allocations: 20 kB / 0.9705 GB, free: 3.477 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.0001737/0.3216, allocations: 220 kB / 0.9707 GB, free: 3.254 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/0.3217, allocations: 75.06 kB / 0.9708 GB, free: 3.18 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.3219, allocations: 75.22 kB / 0.9708 GB, free: 3.102 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3219, allocations: 4 kB / 0.9708 GB, free: 3.098 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.3219, allocations: 4 kB / 0.9708 GB, free: 3.094 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3219, allocations: 7.984 kB / 0.9708 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006417/0.3226, allocations: 0.6219 MB / 0.9714 GB, free: 2.414 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3226, allocations: 0 / 0.9714 GB, free: 2.414 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.323, allocations: 83.88 kB / 0.9715 GB, free: 2.332 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.323, allocations: 7.938 kB / 0.9715 GB, free: 2.324 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.3231, allocations: 4 kB / 0.9715 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3231, allocations: 4 kB / 0.9715 GB, free: 2.316 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.3231, allocations: 7.922 kB / 0.9716 GB, free: 2.309 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.3245, allocations: 0.7325 MB / 0.9723 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.3247, allocations: 192.1 kB / 0.9725 GB, free: 1.352 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.611e-05/0.3248, allocations: 12 kB / 0.9725 GB, free: 1.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.3252, allocations: 35.95 kB / 0.9725 GB, free: 1.305 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.989e-05/0.3253, allocations: 31.95 kB / 0.9725 GB, free: 1.273 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.3253, allocations: 15.98 kB / 0.9725 GB, free: 1.258 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004621/0.3258, allocations: 431.1 kB / 0.973 GB, free: 0.8438 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3258, allocations: 0 / 0.973 GB, free: 0.8438 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005822/0.3264, allocations: 215.3 kB / 0.9732 GB, free: 0.6328 MB / 0.7481 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.0001428/0.3266, allocations: 115.2 kB / 0.9733 GB, free: 0.5117 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001621/0.3282, allocations: 0.8044 MB / 0.9741 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3282, allocations: 0 / 0.9741 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.3286, allocations: 211.7 kB / 0.9743 GB, free: 15.47 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.3295, allocations: 218.5 kB / 0.9745 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.3318, allocations: 1.478 MB / 0.9759 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.3323, allocations: 0.9179 MB / 0.9768 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.3325, allocations: 47.44 kB / 0.9768 GB, free: 12.76 MB / 0.7637 GB Notification: Performance of SimCode: time 5.1e-07/0.3325, allocations: 0 / 0.9768 GB, free: 12.76 MB / 0.7637 GB Notification: Performance of Templates: time 0.01444/0.3469, allocations: 8.636 MB / 0.9853 GB, free: 4.164 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