Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.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.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 90.36 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.008752/0.008753, allocations: 170.4 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.615/1.615, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.559/2.559, allocations: 390.9 MB / 0.6663 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004082/0.0004086, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8466/0.847, allocations: 142.4 MB / 0.9551 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001363/0.8484, allocations: 0.7441 MB / 0.9558 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.8502, allocations: 0.9886 MB / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/0.8504, allocations: 3.406 kB / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.8506, allocations: 15.86 kB / 0.9568 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.096e-05/0.8507, allocations: 9.906 kB / 0.9568 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.851, allocations: 67.47 kB / 0.9568 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.8513, allocations: 152 kB / 0.957 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.8515, allocations: 77.12 kB / 0.9571 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.8517, allocations: 50.66 kB / 0.9571 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.8518, allocations: 54.58 kB / 0.9572 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.8518, allocations: 5.406 kB / 0.9572 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.453e-05/0.8519, allocations: 13.5 kB / 0.9572 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.8519, allocations: 29.55 kB / 0.9572 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.45e-05/0.852, allocations: 81.69 kB / 0.9573 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001925/0.8522, allocations: 162.6 kB / 0.9574 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.8522, allocations: 0 / 0.9574 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.845e-06/0.8522, allocations: 0.9375 kB / 0.9574 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.8522, allocations: 0 / 0.9574 GB, free: 5.887 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008595/0.8531, allocations: 455.5 kB / 0.9579 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.8532, allocations: 8.719 kB / 0.9579 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/0.8533, allocations: 18.31 kB / 0.9579 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.8535, allocations: 216.9 kB / 0.9581 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.8536, allocations: 9.844 kB / 0.9581 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.8536, allocations: 19.09 kB / 0.9581 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.854, allocations: 152.1 kB / 0.9583 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.854, allocations: 192 / 0.9583 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.629e-05/0.854, allocations: 9.125 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.854, allocations: 4.594 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.8543, allocations: 114.3 kB / 0.9584 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.8554, allocations: 0.5382 MB / 0.9589 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000416/0.8559, allocations: 149.9 kB / 0.9591 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.856, allocations: 88.98 kB / 0.9592 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.8561, allocations: 5.312 kB / 0.9592 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.8564, allocations: 133.9 kB / 0.9593 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 2.295e-06/0.8564, allocations: 7.922 kB / 0.9593 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0006291/0.857, allocations: 243.3 kB / 0.9595 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.8571, allocations: 52.72 kB / 0.9596 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.8572, allocations: 154 kB / 0.9597 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.8572, allocations: 31.08 kB / 0.9598 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.028e-05/0.8573, allocations: 118.3 kB / 0.9599 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.8574, allocations: 63.81 kB / 0.9599 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-05/0.8575, allocations: 31.45 kB / 0.96 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.836e-05/0.8575, allocations: 322 kB / 0.9603 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.8578, allocations: 71.61 kB / 0.9603 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.858, allocations: 96.22 kB / 0.9604 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.8584, allocations: 162.3 kB / 0.9606 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8584, allocations: 0 / 0.9606 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005232/0.8589, allocations: 223.7 kB / 0.9608 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.859, allocations: 7.062 kB / 0.9608 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.859, allocations: 0 / 0.9608 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.859, allocations: 2.75 kB / 0.9608 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.8592, allocations: 47.62 kB / 0.9609 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.8592, allocations: 1.375 kB / 0.9609 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.8594, allocations: 30.23 kB / 0.9609 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.8594, allocations: 5.281 kB / 0.9609 GB, free: 3.145 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.613e-05/0.8595, allocations: 135.7 kB / 0.961 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.8595, allocations: 18.56 kB / 0.961 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004308/0.86, allocations: 199.9 kB / 0.9612 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.86, allocations: 2.125 kB / 0.9612 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.86, allocations: 5.312 kB / 0.9612 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.86, allocations: 7.984 kB / 0.9612 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007651/0.8608, allocations: 0.5898 MB / 0.9618 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.8608, allocations: 2.031 kB / 0.9618 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.861, allocations: 41.53 kB / 0.9619 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.861, allocations: 2.438 kB / 0.9619 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.861, allocations: 3.062 kB / 0.9619 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.176e-06/0.861, allocations: 11.06 kB / 0.9619 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8611, allocations: 13.88 kB / 0.9619 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000608/0.8617, allocations: 394.3 kB / 0.9623 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.8617, allocations: 94.83 kB / 0.9624 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.8618, allocations: 15.22 kB / 0.9624 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.8619, allocations: 21.42 kB / 0.9624 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.862, allocations: 20.16 kB / 0.9624 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.862, allocations: 6.156 kB / 0.9624 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.272e-05/0.8621, allocations: 119.5 kB / 0.9625 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8621, allocations: 0 / 0.9625 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002968/0.8624, allocations: 36.25 kB / 0.9626 GB, free: 1.793 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0001682/0.8626, allocations: 117.2 kB / 0.9627 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004745/0.8631, allocations: 166.3 kB / 0.9628 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.8631, allocations: 4.062 kB / 0.9628 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.8633, allocations: 85.94 kB / 0.9629 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.8637, allocations: 30.88 kB / 0.9629 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006312/0.8643, allocations: 432 kB / 0.9634 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001759/0.8645, allocations: 0.7248 MB / 0.9641 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.832e-05/0.8646, allocations: 14.33 kB / 0.9641 GB, free: 496 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.533e-05/0.8647, allocations: 17.22 kB / 0.9641 GB, free: 488 kB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8647, allocations: 0 / 0.9641 GB, free: 488 kB / 0.7169 GB Notification: Performance of Templates: time 0.004927/0.8696, allocations: 1.543 MB / 0.9656 GB, free: 15.71 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches