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.001236/0.001236, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001415/0.001415, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.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.31/2.31, allocations: 390.2 MB / 0.6653 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004037/0.0004038, allocations: 12 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6388/0.6392, allocations: 142.3 MB / 0.9535 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001031/0.6403, allocations: 0.7095 MB / 0.9542 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009145/0.6412, allocations: 0.9897 MB / 0.9552 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.391e-05/0.6413, allocations: 3.281 kB / 0.9552 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.194e-05/0.6413, allocations: 7.875 kB / 0.9552 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.946e-05/0.6414, allocations: 14.88 kB / 0.9552 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.6416, allocations: 55.31 kB / 0.9553 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.6418, allocations: 99.89 kB / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.6419, allocations: 57.38 kB / 0.9554 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.665e-05/0.642, allocations: 57.2 kB / 0.9555 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.6421, allocations: 50.67 kB / 0.9555 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.6421, allocations: 5.75 kB / 0.9555 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.777e-05/0.6421, allocations: 5.344 kB / 0.9555 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.6421, allocations: 33.33 kB / 0.9556 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.989e-05/0.6422, allocations: 46.3 kB / 0.9556 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.6423, allocations: 114.5 kB / 0.9557 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.6423, allocations: 0 / 0.9557 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6423, allocations: 0 / 0.9557 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.6423, allocations: 0 / 0.9557 GB, free: 6.324 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.0006142/0.6429, allocations: 458.8 kB / 0.9562 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.643, allocations: 9.344 kB / 0.9562 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/0.643, allocations: 25.52 kB / 0.9562 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.6432, allocations: 219.7 kB / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.6432, allocations: 13.7 kB / 0.9564 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.6433, allocations: 18.72 kB / 0.9564 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.6436, allocations: 145.5 kB / 0.9566 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.6436, allocations: 0 / 0.9566 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.6436, allocations: 13.22 kB / 0.9566 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.6436, allocations: 3.75 kB / 0.9566 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002921/0.6439, allocations: 114.3 kB / 0.9567 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.645, allocations: 0.5382 MB / 0.9572 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.6454, allocations: 140.9 kB / 0.9573 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.6454, allocations: 7.297 kB / 0.9574 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.6457, allocations: 133 kB / 0.9575 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.743e-06/0.6457, allocations: 0 / 0.9575 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0005259/0.6462, allocations: 235.7 kB / 0.9577 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.6463, allocations: 53.69 kB / 0.9578 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.6464, allocations: 157.2 kB / 0.9579 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.6464, allocations: 30.98 kB / 0.9579 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.6465, allocations: 123.2 kB / 0.9581 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.6465, allocations: 58.42 kB / 0.9581 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.6465, allocations: 9.469 kB / 0.9581 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.6466, allocations: 321.9 kB / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.6468, allocations: 70.08 kB / 0.9585 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.647, allocations: 99.05 kB / 0.9586 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.6472, allocations: 78.94 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.6472, allocations: 1.188 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004593/0.6477, allocations: 220.1 kB / 0.9589 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.6477, allocations: 9.391 kB / 0.9589 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.6477, allocations: 1.719 kB / 0.9589 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.6477, allocations: 1.969 kB / 0.9589 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.648, allocations: 47.28 kB / 0.9589 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.648, allocations: 1.656 kB / 0.9589 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.6481, allocations: 29.42 kB / 0.959 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.6481, allocations: 13.73 kB / 0.959 GB, free: 3.691 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,$PRE.lesThr.lesHys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.828e-05/0.6482, allocations: 124.2 kB / 0.9591 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.6483, allocations: 15.28 kB / 0.9591 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003952/0.6487, allocations: 206.3 kB / 0.9593 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6487, allocations: 2.75 kB / 0.9593 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.6487, allocations: 0 / 0.9593 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.6487, allocations: 7.953 kB / 0.9593 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006937/0.6494, allocations: 0.5979 MB / 0.9599 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.6494, allocations: 9.266 kB / 0.9599 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.6496, allocations: 46.16 kB / 0.96 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.6496, allocations: 2.75 kB / 0.96 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.6496, allocations: 2.75 kB / 0.96 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.6496, allocations: 2.75 kB / 0.96 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.6496, allocations: 1.375 kB / 0.96 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005483/0.6502, allocations: 472.4 kB / 0.9604 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.121e-05/0.6502, allocations: 91.36 kB / 0.9605 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.6503, allocations: 11.02 kB / 0.9605 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.6504, allocations: 21.06 kB / 0.9605 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.004e-05/0.6505, allocations: 24.89 kB / 0.9606 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.6505, allocations: 14.66 kB / 0.9606 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.449e-05/0.6506, allocations: 117 kB / 0.9607 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6506, allocations: 0 / 0.9607 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002852/0.6509, allocations: 35.25 kB / 0.9607 GB, free: 2.234 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000124/0.651, allocations: 106.3 kB / 0.9608 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004231/0.6515, allocations: 172.5 kB / 0.961 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6515, allocations: 1 kB / 0.961 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.6517, allocations: 93.14 kB / 0.9611 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.6519, allocations: 27.03 kB / 0.9611 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005129/0.6524, allocations: 409.6 kB / 0.9615 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.6526, allocations: 0.731 MB / 0.9622 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.076e-05/0.6527, allocations: 14.27 kB / 0.9622 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.33e-05/0.6527, allocations: 17.16 kB / 0.9622 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.6527, allocations: 0 / 0.9622 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of Templates: time 0.003931/0.6567, allocations: 1.491 MB / 0.9637 GB, free: 200 kB / 0.7169 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches