Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 97.78 kB / 16.02 MB, free: 76 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.001641/0.001641, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.575/1.575, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.793/2.793, allocations: 462.6 MB / 0.737 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003475, allocations: 13.47 kB / 0.9034 GB, free: 36.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3202, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001462/0.3217, allocations: 0.7763 MB / 1.06 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.3231, allocations: 0.9831 MB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.3232, allocations: 4 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.3234, allocations: 11.86 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.474e-05/0.3234, allocations: 19.84 kB / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.3238, allocations: 63.19 kB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.324, allocations: 160 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.3242, allocations: 80.03 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.3243, allocations: 55.7 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3244, allocations: 63.62 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.3245, allocations: 8 kB / 1.062 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.3245, allocations: 4 kB / 1.062 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.3245, allocations: 23.91 kB / 1.062 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.3247, allocations: 89.23 kB / 1.062 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.3249, allocations: 135.9 kB / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3249, allocations: 0 / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3249, allocations: 0 / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.3249, allocations: 0 / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008483/0.3257, allocations: 462.9 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.3258, allocations: 8.031 kB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.281e-05/0.3259, allocations: 24.66 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.3261, allocations: 220.5 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.3262, allocations: 12.38 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.3262, allocations: 20.38 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.3266, allocations: 169.5 kB / 1.063 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3266, allocations: 0 / 1.063 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.3266, allocations: 8 kB / 1.063 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.3266, allocations: 4 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.3269, allocations: 111.9 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.3281, allocations: 0.5469 MB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.3285, allocations: 146.7 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.3287, allocations: 88.77 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.3288, allocations: 7.984 kB / 1.064 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.329, allocations: 124.8 kB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.3291, allocations: 0 / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0005911/0.3296, allocations: 246.3 kB / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.038e-05/0.3297, allocations: 55.41 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.3299, allocations: 155.8 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.33, allocations: 33.7 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.35e-05/0.3301, allocations: 124.4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.427e-05/0.3302, allocations: 59.09 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.3302, allocations: 25.7 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3304, allocations: 330.8 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.3306, allocations: 71.95 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.3308, allocations: 91.5 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.3312, allocations: 164.2 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3312, allocations: 0 / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005321/0.3318, allocations: 223.4 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3318, allocations: 5.875 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3318, allocations: 4 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3318, allocations: 0 / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.332, allocations: 43.92 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.3321, allocations: 8.016 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.3322, allocations: 31.83 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.3322, allocations: 4 kB / 1.065 GB, free: 14.69 MB / 0.8262 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.0001092/0.3324, allocations: 129.7 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.3324, allocations: 19.81 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.3328, allocations: 200.6 kB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3329, allocations: 4 kB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3329, allocations: 0 / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3329, allocations: 0 / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008756/0.3338, allocations: 0.6045 MB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3338, allocations: 4 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.334, allocations: 35.92 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.334, allocations: 7.938 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.334, allocations: 11.98 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.334, allocations: 0 / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.334, allocations: 4 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006515/0.3347, allocations: 400.4 kB / 1.067 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.942e-05/0.3348, allocations: 104.8 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.3348, allocations: 8 kB / 1.067 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.335, allocations: 27.98 kB / 1.067 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.363e-05/0.3351, allocations: 19.91 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.3351, allocations: 12 kB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001095/0.3352, allocations: 117.4 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3352, allocations: 0 / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002883/0.3355, allocations: 32 kB / 1.067 GB, free: 12.83 MB / 0.8262 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.0001825/0.3357, allocations: 107.2 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004829/0.3362, allocations: 179.7 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3362, allocations: 0 / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002001/0.3364, allocations: 95.97 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.3368, allocations: 27.89 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007711/0.3376, allocations: 474.4 kB / 1.068 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.3379, allocations: 0.7207 MB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.338, allocations: 19.44 kB / 1.068 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.338, allocations: 4 kB / 1.068 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of Templates: time 0.004399/0.3424, allocations: 1.929 MB / 1.07 GB, free: 9.203 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches