Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.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.OBC.CDL.Continuous.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.01021/0.01021, allocations: 170.8 kB / 16.26 MB, free: 6.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.559/1.559, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.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.619/2.619, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003804, allocations: 12 kB / 0.816 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9473/0.9477, allocations: 142.4 MB / 0.9551 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo): time 0.00123/0.9491, allocations: 441.4 kB / 0.9555 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.9505, allocations: 0.8585 MB / 0.9563 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.199e-05/0.9506, allocations: 0 / 0.9563 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.153e-05/0.9507, allocations: 0 / 0.9563 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.9508, allocations: 9.422 kB / 0.9563 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.951, allocations: 15.2 kB / 0.9563 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.9511, allocations: 45.84 kB / 0.9564 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.9513, allocations: 8.406 kB / 0.9564 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.959e-05/0.9514, allocations: 16.58 kB / 0.9564 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.17e-05/0.9515, allocations: 17.27 kB / 0.9564 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.9515, allocations: 2.25 kB / 0.9564 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.549e-05/0.9515, allocations: 6.156 kB / 0.9564 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.378e-05/0.9516, allocations: 12.8 kB / 0.9564 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.227e-05/0.9516, allocations: 36.62 kB / 0.9565 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.731e-05/0.9517, allocations: 43.58 kB / 0.9565 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.9517, allocations: 4 kB / 0.9565 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9517, allocations: 0 / 0.9565 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.9518, allocations: 1.188 kB / 0.9565 GB, free: 6.5 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000567/0.9523, allocations: 362.8 kB / 0.9569 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.9524, allocations: 10.66 kB / 0.9569 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.118e-05/0.9524, allocations: 10.16 kB / 0.9569 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.9526, allocations: 166.8 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.9526, allocations: 1.469 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.9526, allocations: 1.844 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003345/0.953, allocations: 85.05 kB / 0.9571 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.953, allocations: 8.906 kB / 0.9571 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.953, allocations: 3.938 kB / 0.9571 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.953, allocations: 0.875 kB / 0.9571 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.9534, allocations: 86.89 kB / 0.9572 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004264/0.9538, allocations: 262.8 kB / 0.9575 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.954, allocations: 71.11 kB / 0.9576 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.9542, allocations: 52.84 kB / 0.9576 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.9543, allocations: 5.25 kB / 0.9576 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.9543, allocations: 30.56 kB / 0.9576 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.9543, allocations: 1.156 kB / 0.9576 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0006547/0.955, allocations: 155.5 kB / 0.9578 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.955, allocations: 59.39 kB / 0.9578 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.738e-05/0.9551, allocations: 119.3 kB / 0.958 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.9551, allocations: 26.83 kB / 0.958 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.9552, allocations: 89.08 kB / 0.9581 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.9552, allocations: 9.844 kB / 0.9581 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.9552, allocations: 14.91 kB / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.754e-05/0.9553, allocations: 315.9 kB / 0.9584 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.9555, allocations: 43.31 kB / 0.9584 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.9557, allocations: 39 kB / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.956, allocations: 91.25 kB / 0.9586 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.956, allocations: 7.938 kB / 0.9586 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003522/0.9564, allocations: 116.7 kB / 0.9587 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.9564, allocations: 9.953 kB / 0.9587 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.9564, allocations: 0 / 0.9587 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.9564, allocations: 0 / 0.9587 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.9566, allocations: 24.3 kB / 0.9587 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.9566, allocations: 0 / 0.9587 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.44e-05/0.9567, allocations: 24.19 kB / 0.9587 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.9567, allocations: 1.469 kB / 0.9587 GB, free: 4.52 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.23e-05/0.9568, allocations: 115.2 kB / 0.9588 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.493e-05/0.9569, allocations: 5.438 kB / 0.9588 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.7e-05/0.9569, allocations: 18.06 kB / 0.9589 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.9569, allocations: 0 / 0.9589 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.957, allocations: 4 kB / 0.9589 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.957, allocations: 1.375 kB / 0.9589 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.9572, allocations: 172.7 kB / 0.959 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9572, allocations: 0 / 0.959 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.9573, allocations: 27.84 kB / 0.9591 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.9573, allocations: 0 / 0.9591 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.9573, allocations: 1.156 kB / 0.9591 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.9573, allocations: 0 / 0.9591 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.9573, allocations: 1.344 kB / 0.9591 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003958/0.9577, allocations: 220.4 kB / 0.9593 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.648e-05/0.9578, allocations: 81.02 kB / 0.9594 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.9578, allocations: 5.922 kB / 0.9594 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.9579, allocations: 18.92 kB / 0.9594 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.958, allocations: 1.812 kB / 0.9594 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.958, allocations: 1.781 kB / 0.9594 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.089e-05/0.958, allocations: 88.67 kB / 0.9595 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.958, allocations: 4 kB / 0.9595 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002284/0.9583, allocations: 7.188 kB / 0.9595 GB, free: 3.781 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000181/0.9584, allocations: 97.16 kB / 0.9596 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000389/0.9588, allocations: 90.48 kB / 0.9597 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.9589, allocations: 0 / 0.9597 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.959, allocations: 55.52 kB / 0.9597 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.9594, allocations: 13.27 kB / 0.9597 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003818/0.9598, allocations: 126.7 kB / 0.9598 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.96, allocations: 0.6837 MB / 0.9605 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.889e-05/0.96, allocations: 5.359 kB / 0.9605 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.9601, allocations: 8.812 kB / 0.9605 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.9601, allocations: 3.938 kB / 0.9605 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of Templates: time 0.003575/0.9636, allocations: 0.5861 MB / 0.9611 GB, free: 2.484 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches