Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 107.5 kB / 16.36 MB, free: 5.875 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.001668/0.001668, allocations: 196.3 kB / 17.3 MB, free: 5.516 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.29/1.29, allocations: 222.9 MB / 241 MB, free: 15.17 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.151/2.151, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 65.39 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2376, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.00466/0.2423, allocations: 3.009 MB / 0.9541 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001727/0.244, allocations: 0.9119 MB / 0.9549 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000323/0.2444, allocations: 11.94 kB / 0.955 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.2446, allocations: 63.27 kB / 0.955 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.2449, allocations: 91.17 kB / 0.9551 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005714/0.2455, allocations: 219.6 kB / 0.9553 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005515/0.2461, allocations: 487.3 kB / 0.9558 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003636/0.2465, allocations: 217.6 kB / 0.956 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.2467, allocations: 187.1 kB / 0.9562 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.2469, allocations: 171.1 kB / 0.9563 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.784e-05/0.247, allocations: 44 kB / 0.9564 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.303e-05/0.247, allocations: 47.94 kB / 0.9564 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.339e-05/0.2471, allocations: 95.61 kB / 0.9565 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.2473, allocations: 198.9 kB / 0.9567 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004685/0.2478, allocations: 0.5137 MB / 0.9572 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2478, allocations: 0 / 0.9572 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2478, allocations: 4 kB / 0.9572 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.2478, allocations: 0 / 0.9572 GB, free: 1.773 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001024/0.2488, allocations: 0.7089 MB / 0.9579 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.2489, allocations: 8.031 kB / 0.9579 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.903e-05/0.249, allocations: 52.38 kB / 0.9579 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005912/0.2495, allocations: 396.3 kB / 0.9583 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.2496, allocations: 25.03 kB / 0.9584 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.812e-05/0.2496, allocations: 28.38 kB / 0.9584 GB, free: 492 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.2502, allocations: 341.4 kB / 0.9587 GB, free: 124 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.2502, allocations: 3.984 kB / 0.9587 GB, free: 120 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.2502, allocations: 16 kB / 0.9587 GB, free: 104 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2503, allocations: 8 kB / 0.9587 GB, free: 96 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.2507, allocations: 218.1 kB / 0.9589 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.2522, allocations: 1.166 MB / 0.9601 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.2527, allocations: 243.8 kB / 0.9603 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.253, allocations: 108.8 kB / 0.9604 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.253, allocations: 4 kB / 0.9604 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.253, allocations: 42.92 kB / 0.9605 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=22): time 3.506e-06/0.253, allocations: 0 / 0.9605 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of matching and sorting (n=22): time 0.0006373/0.2537, allocations: 295.2 kB / 0.9607 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.2538, allocations: 110.8 kB / 0.9608 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.2541, allocations: 333.7 kB / 0.9612 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.2541, allocations: 29.7 kB / 0.9612 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.2543, allocations: 232.1 kB / 0.9614 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.2544, allocations: 71 kB / 0.9615 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/0.2545, allocations: 57.61 kB / 0.9615 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.2546, allocations: 342.8 kB / 0.9619 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.2548, allocations: 83.91 kB / 0.9619 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.255, allocations: 144.2 kB / 0.9621 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.2554, allocations: 220.2 kB / 0.9623 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.2554, allocations: 0 / 0.9623 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004948/0.2559, allocations: 278.5 kB / 0.9626 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.2559, allocations: 4 kB / 0.9626 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.2559, allocations: 4 kB / 0.9626 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2559, allocations: 0 / 0.9626 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.2562, allocations: 64.09 kB / 0.9626 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.2562, allocations: 3.938 kB / 0.9626 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.2564, allocations: 35.67 kB / 0.9627 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.2564, allocations: 8 kB / 0.9627 GB, free: 11.84 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001566/0.2566, allocations: 161.8 kB / 0.9628 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.2566, allocations: 35.56 kB / 0.9629 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.501e-05/0.2567, allocations: 43.36 kB / 0.9629 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2567, allocations: 4 kB / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2567, allocations: 0 / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2567, allocations: 4 kB / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.2572, allocations: 393.2 kB / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2572, allocations: 0 / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.2574, allocations: 39.97 kB / 0.9633 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2574, allocations: 0 / 0.9633 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.2574, allocations: 8 kB / 0.9633 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.2574, allocations: 0 / 0.9633 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2575, allocations: 0 / 0.9633 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006559/0.2581, allocations: 438.1 kB / 0.9637 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.2582, allocations: 124.7 kB / 0.9639 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/0.2583, allocations: 8 kB / 0.9639 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.2585, allocations: 19.92 kB / 0.9639 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.2585, allocations: 15.97 kB / 0.9639 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.2586, allocations: 12.06 kB / 0.9639 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002274/0.2588, allocations: 239.2 kB / 0.9641 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2588, allocations: 0 / 0.9641 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003145/0.2591, allocations: 71.69 kB / 0.9642 GB, free: 10.17 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001121/0.2592, allocations: 107.2 kB / 0.9643 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004378/0.2597, allocations: 200.1 kB / 0.9645 GB, free: 9.859 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2597, allocations: 0 / 0.9645 GB, free: 9.859 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.2599, allocations: 103.8 kB / 0.9646 GB, free: 9.758 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.2604, allocations: 94.14 kB / 0.9647 GB, free: 9.676 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.2616, allocations: 0.6909 MB / 0.9654 GB, free: 8.953 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.2619, allocations: 0.791 MB / 0.9661 GB, free: 8.133 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001336/0.2621, allocations: 42.95 kB / 0.9662 GB, free: 8.094 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.234e-05/0.2622, allocations: 27.44 kB / 0.9662 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of SimCode: time 2.21e-07/0.2622, allocations: 0 / 0.9662 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of Templates: time 0.006799/0.269, allocations: 3.185 MB / 0.9693 GB, free: 4.91 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches