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.001151/0.001152, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 197.8 kB / 16.79 MB, free: 6.809 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.386/1.386, allocations: 222.9 MB / 240.5 MB, free: 4.602 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.404/2.404, allocations: 390.2 MB / 0.6649 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 67.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6727/0.6742, allocations: 140.4 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002119/0.6764, allocations: 1.089 MB / 0.9507 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009674/0.6773, allocations: 0.9942 MB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.6774, allocations: 10.69 kB / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.6776, allocations: 13.19 kB / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.609e-05/0.6776, allocations: 13.23 kB / 0.9517 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.6779, allocations: 62.94 kB / 0.9517 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.678, allocations: 157 kB / 0.9519 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.6782, allocations: 71.98 kB / 0.952 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.316e-05/0.6783, allocations: 62.73 kB / 0.952 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.118e-05/0.6784, allocations: 75.52 kB / 0.9521 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.6784, allocations: 14.03 kB / 0.9521 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.3e-05/0.6784, allocations: 8.969 kB / 0.9521 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.258e-05/0.6785, allocations: 29.38 kB / 0.9521 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.749e-05/0.6785, allocations: 66.69 kB / 0.9522 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.6787, allocations: 124.9 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.6787, allocations: 0 / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.41e-07/0.6787, allocations: 3.938 kB / 0.9523 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.6787, allocations: 1.219 kB / 0.9523 GB, free: 6.992 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.0007017/0.6794, allocations: 481.5 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.6794, allocations: 9.5 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.6795, allocations: 17.91 kB / 0.9528 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.6797, allocations: 214.2 kB / 0.953 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.6797, allocations: 15.56 kB / 0.953 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.6797, allocations: 13.94 kB / 0.953 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.68, allocations: 147 kB / 0.9532 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.68, allocations: 2.188 kB / 0.9532 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.6801, allocations: 11.94 kB / 0.9532 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.6801, allocations: 3.562 kB / 0.9532 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.6803, allocations: 105 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009517/0.6813, allocations: 0.528 MB / 0.9538 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.6816, allocations: 137.9 kB / 0.954 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.6818, allocations: 82.8 kB / 0.954 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.6819, allocations: 2.625 kB / 0.954 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.6821, allocations: 134 kB / 0.9542 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.6821, allocations: 1.469 kB / 0.9542 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.000519/0.6826, allocations: 223 kB / 0.9544 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.6827, allocations: 53.06 kB / 0.9544 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.6828, allocations: 158.7 kB / 0.9546 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.6828, allocations: 35.05 kB / 0.9546 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.6829, allocations: 111.2 kB / 0.9547 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.6829, allocations: 69.34 kB / 0.9548 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.829e-05/0.683, allocations: 39.61 kB / 0.9548 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.051e-05/0.683, allocations: 331 kB / 0.9551 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.6832, allocations: 62.47 kB / 0.9552 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.6834, allocations: 93.19 kB / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.6837, allocations: 150.5 kB / 0.9554 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.6837, allocations: 3.938 kB / 0.9554 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004413/0.6842, allocations: 212.3 kB / 0.9556 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.6842, allocations: 5.094 kB / 0.9556 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.6842, allocations: 1.375 kB / 0.9556 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.6842, allocations: 5.422 kB / 0.9556 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.6844, allocations: 42.09 kB / 0.9557 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.6845, allocations: 1.344 kB / 0.9557 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.6846, allocations: 21.45 kB / 0.9557 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.6846, allocations: 12.52 kB / 0.9557 GB, free: 4.223 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 8.707e-05/0.6847, allocations: 137.6 kB / 0.9559 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.329e-05/0.6847, allocations: 14.59 kB / 0.9559 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003789/0.6851, allocations: 194.3 kB / 0.956 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.6851, allocations: 2.469 kB / 0.9561 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6851, allocations: 1.344 kB / 0.9561 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.6851, allocations: 0 / 0.9561 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006535/0.6858, allocations: 0.5808 MB / 0.9566 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.6858, allocations: 1.281 kB / 0.9566 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.686, allocations: 43.53 kB / 0.9567 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.686, allocations: 2.312 kB / 0.9567 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.686, allocations: 3.406 kB / 0.9567 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.686, allocations: 10.16 kB / 0.9567 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.686, allocations: 2.125 kB / 0.9567 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005457/0.6866, allocations: 387.1 kB / 0.957 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.172e-05/0.6866, allocations: 89.98 kB / 0.9571 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.6867, allocations: 12.34 kB / 0.9571 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.6868, allocations: 19.72 kB / 0.9572 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.298e-05/0.6869, allocations: 22 kB / 0.9572 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.6869, allocations: 9.609 kB / 0.9572 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.717e-05/0.687, allocations: 115.2 kB / 0.9573 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.687, allocations: 0 / 0.9573 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002641/0.6873, allocations: 36.28 kB / 0.9573 GB, free: 2.887 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.0001283/0.6874, allocations: 116.8 kB / 0.9575 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000383/0.6878, allocations: 154.8 kB / 0.9576 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.6878, allocations: 0 / 0.9576 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.688, allocations: 89.95 kB / 0.9577 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.6883, allocations: 31.38 kB / 0.9577 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005291/0.6888, allocations: 446.8 kB / 0.9581 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.689, allocations: 0.7221 MB / 0.9588 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.689, allocations: 17.25 kB / 0.9589 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of SimCode: time 3.9e-07/0.6891, allocations: 0 / 0.9589 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of Templates: time 0.003773/0.6928, allocations: 1.896 MB / 0.9607 GB, free: 0.5781 MB / 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","/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