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.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.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.001251/0.001255, allocations: 111.1 kB / 16.37 MB, free: 6.012 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.001279/0.001279, allocations: 189.5 kB / 17.31 MB, free: 5.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.446/1.446, allocations: 222.9 MB / 241 MB, free: 15.18 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.362/2.362, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 69.11 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.349, allocations: 140.4 MB / 0.9512 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002955/0.3521, allocations: 1.033 MB / 0.9522 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001551/0.3537, allocations: 0.9948 MB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.3538, allocations: 8 kB / 0.9531 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.354, allocations: 19.73 kB / 0.9532 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.465e-05/0.3541, allocations: 19.8 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.3544, allocations: 67.86 kB / 0.9532 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.3547, allocations: 175.6 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.3549, allocations: 70.53 kB / 0.9535 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.3551, allocations: 67.77 kB / 0.9535 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.3552, allocations: 75.61 kB / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.518e-05/0.3552, allocations: 19.94 kB / 0.9536 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.23e-05/0.3553, allocations: 16 kB / 0.9537 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.541e-05/0.3553, allocations: 47.83 kB / 0.9537 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.3554, allocations: 67.59 kB / 0.9538 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.3557, allocations: 171.3 kB / 0.9539 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.3557, allocations: 4 kB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.485e-06/0.3557, allocations: 0 / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.385e-06/0.3557, allocations: 0 / 0.9539 GB, free: 5.168 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008697/0.3566, allocations: 483.1 kB / 0.9544 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3566, allocations: 8.031 kB / 0.9544 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.237e-05/0.3567, allocations: 16.75 kB / 0.9544 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.3571, allocations: 217.9 kB / 0.9546 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.3571, allocations: 12.66 kB / 0.9546 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.3572, allocations: 20.38 kB / 0.9547 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.3575, allocations: 144.4 kB / 0.9548 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3575, allocations: 4.125 kB / 0.9548 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.3576, allocations: 11.94 kB / 0.9548 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3576, allocations: 0 / 0.9548 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.3579, allocations: 104.8 kB / 0.9549 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.359, allocations: 0.5315 MB / 0.9554 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.3595, allocations: 150.6 kB / 0.9556 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001887/0.3597, allocations: 80.86 kB / 0.9556 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3597, allocations: 4 kB / 0.9556 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.36, allocations: 127.2 kB / 0.9558 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.773e-06/0.36, allocations: 0 / 0.9558 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.0005957/0.3606, allocations: 231.4 kB / 0.956 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.3607, allocations: 51.41 kB / 0.956 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.3608, allocations: 154.2 kB / 0.9562 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.3609, allocations: 29.7 kB / 0.9562 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.292e-05/0.361, allocations: 116.4 kB / 0.9563 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.745e-05/0.361, allocations: 59.09 kB / 0.9564 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/0.3611, allocations: 45.7 kB / 0.9564 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3613, allocations: 330.8 kB / 0.9567 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.3615, allocations: 59.97 kB / 0.9568 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.3617, allocations: 91.48 kB / 0.9569 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.362, allocations: 151.2 kB / 0.957 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.362, allocations: 0 / 0.957 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004513/0.3625, allocations: 215.4 kB / 0.9572 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3625, allocations: 4 kB / 0.9572 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3625, allocations: 3.938 kB / 0.9572 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.3625, allocations: 0 / 0.9572 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.3627, allocations: 44 kB / 0.9573 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.3627, allocations: 0 / 0.9573 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.3629, allocations: 27.83 kB / 0.9573 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.3629, allocations: 11.98 kB / 0.9573 GB, free: 1.457 MB / 0.7325 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 0.0001217/0.363, allocations: 136.1 kB / 0.9575 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.3631, allocations: 11.81 kB / 0.9575 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004174/0.3635, allocations: 198.7 kB / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3635, allocations: 0 / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.391e-06/0.3635, allocations: 0 / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3635, allocations: 0 / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007914/0.3643, allocations: 0.5772 MB / 0.9582 GB, free: 468 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3643, allocations: 7.938 kB / 0.9582 GB, free: 460 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.3645, allocations: 35.97 kB / 0.9583 GB, free: 424 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3645, allocations: 0 / 0.9583 GB, free: 424 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.3645, allocations: 8 kB / 0.9583 GB, free: 416 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3646, allocations: 7.938 kB / 0.9583 GB, free: 408 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3646, allocations: 4.125 kB / 0.9583 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005831/0.3651, allocations: 382.5 kB / 0.9586 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.965e-05/0.3652, allocations: 96.8 kB / 0.9587 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.3653, allocations: 7.938 kB / 0.9587 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3654, allocations: 16.03 kB / 0.9588 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.3655, allocations: 27.91 kB / 0.9588 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3655, allocations: 8 kB / 0.9588 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.881e-05/0.3656, allocations: 123.2 kB / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3656, allocations: 0 / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002879/0.3659, allocations: 28 kB / 0.9589 GB, free: 15.67 MB / 0.7481 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.0002711/0.3662, allocations: 115.1 kB / 0.959 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004692/0.3667, allocations: 163.9 kB / 0.9592 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3667, allocations: 4.062 kB / 0.9592 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.3669, allocations: 83.84 kB / 0.9593 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.3673, allocations: 23.92 kB / 0.9593 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008542/0.3681, allocations: 366.4 kB / 0.9597 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.3685, allocations: 0.7242 MB / 0.9604 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.446e-05/0.3686, allocations: 21.42 kB / 0.9604 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.722e-05/0.3687, allocations: 15.44 kB / 0.9604 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.3687, allocations: 3.938 kB / 0.9604 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of Templates: time 0.005864/0.3746, allocations: 1.75 MB / 0.9621 GB, free: 12.34 MB / 0.7481 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 -s cvode -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/jenkins1/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