Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 80.38 kB / 19.18 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002412/0.002412, allocations: 162.4 kB / 22.46 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.549/1.549, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.871/2.871, allocations: 377.8 MB / 0.6221 GB, free: 12.63 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.258e-06/4.258e-06, allocations: 0 / 0.9815 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.525e-05/3.95e-05, allocations: 2.281 kB / 0.9815 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003969/0.004008, allocations: 0.9986 MB / 0.9825 GB, free: 9.891 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002893/0.006901, allocations: 1.038 MB / 0.9835 GB, free: 8.84 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.007073, allocations: 0 / 0.9835 GB, free: 8.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.007284, allocations: 27.73 kB / 0.9835 GB, free: 8.812 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.007391, allocations: 19.8 kB / 0.9835 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.00792, allocations: 71.84 kB / 0.9836 GB, free: 8.723 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.008289, allocations: 176.1 kB / 0.9838 GB, free: 8.551 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.008565, allocations: 64.34 kB / 0.9838 GB, free: 8.484 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.00884, allocations: 111.8 kB / 0.9839 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.009013, allocations: 51.86 kB / 0.984 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.009074, allocations: 16 kB / 0.984 GB, free: 8.309 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.676e-05/0.009171, allocations: 20 kB / 0.984 GB, free: 8.289 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.889e-05/0.00925, allocations: 43.83 kB / 0.9841 GB, free: 8.246 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.009363, allocations: 55.83 kB / 0.9841 GB, free: 8.191 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000459/0.009822, allocations: 191.3 kB / 0.9843 GB, free: 8.004 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.009832, allocations: 4 kB / 0.9843 GB, free: 8 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.663e-06/0.009834, allocations: 0 / 0.9843 GB, free: 8 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.385e-05/0.009848, allocations: 0 / 0.9843 GB, free: 8 MB / 0.8887 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.001452/0.0113, allocations: 430.3 kB / 0.9847 GB, free: 7.543 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.352e-05/0.01136, allocations: 12.03 kB / 0.9847 GB, free: 7.531 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.01157, allocations: 20.84 kB / 0.9847 GB, free: 7.512 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000521/0.01209, allocations: 162 kB / 0.9849 GB, free: 7.328 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.01212, allocations: 12.38 kB / 0.9849 GB, free: 7.316 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.287e-05/0.01219, allocations: 20.38 kB / 0.9849 GB, free: 7.297 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006181/0.01281, allocations: 183.6 kB / 0.9851 GB, free: 7.105 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.01282, allocations: 192 / 0.9851 GB, free: 7.105 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.01286, allocations: 16.12 kB / 0.9851 GB, free: 7.09 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.01287, allocations: 4 kB / 0.9851 GB, free: 7.086 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000552/0.01343, allocations: 108.8 kB / 0.9852 GB, free: 6.98 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.01529, allocations: 439.8 kB / 0.9856 GB, free: 6.52 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.016, allocations: 134.7 kB / 0.9858 GB, free: 6.379 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.01633, allocations: 84.72 kB / 0.9859 GB, free: 6.293 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.01637, allocations: 4 kB / 0.9859 GB, free: 6.289 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004619/0.01683, allocations: 145 kB / 0.986 GB, free: 6.129 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=19): time 2.234e-06/0.01683, allocations: 0 / 0.986 GB, free: 6.129 MB / 0.8887 GB Notification: Performance of matching and sorting (n=19): time 0.001003/0.01783, allocations: 227.5 kB / 0.9862 GB, free: 5.902 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.0179, allocations: 55.41 kB / 0.9863 GB, free: 5.836 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.01811, allocations: 148.2 kB / 0.9864 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.01816, allocations: 29.7 kB / 0.9864 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.01829, allocations: 116.5 kB / 0.9865 GB, free: 5.531 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.0184, allocations: 71.42 kB / 0.9866 GB, free: 5.461 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.01851, allocations: 41.69 kB / 0.9867 GB, free: 5.414 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002561/0.01877, allocations: 326.8 kB / 0.987 GB, free: 5.086 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.01914, allocations: 63.97 kB / 0.987 GB, free: 5.023 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.01958, allocations: 96.23 kB / 0.9871 GB, free: 4.926 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006698/0.02025, allocations: 147.6 kB / 0.9873 GB, free: 4.777 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.02025, allocations: 0 / 0.9873 GB, free: 4.777 MB / 0.8887 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009156/0.02117, allocations: 207.2 kB / 0.9875 GB, free: 4.57 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.02119, allocations: 6.031 kB / 0.9875 GB, free: 4.566 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.0212, allocations: 4.031 kB / 0.9875 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.02122, allocations: 4 kB / 0.9875 GB, free: 4.559 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.02162, allocations: 43.91 kB / 0.9875 GB, free: 4.516 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.02164, allocations: 4 kB / 0.9875 GB, free: 4.512 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.0219, allocations: 23.86 kB / 0.9875 GB, free: 4.488 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.02193, allocations: 11.94 kB / 0.9876 GB, free: 4.477 MB / 0.8887 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.0002207/0.02216, allocations: 129.7 kB / 0.9877 GB, free: 4.34 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.295e-05/0.02221, allocations: 15.91 kB / 0.9877 GB, free: 4.324 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008247/0.02303, allocations: 194.7 kB / 0.9879 GB, free: 4.129 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.02304, allocations: 0 / 0.9879 GB, free: 4.129 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.02305, allocations: 4 kB / 0.9879 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.02306, allocations: 0 / 0.9879 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.02466, allocations: 0.51 MB / 0.9884 GB, free: 3.562 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.02466, allocations: 0 / 0.9884 GB, free: 3.562 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003857/0.02505, allocations: 35.92 kB / 0.9884 GB, free: 3.527 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.02506, allocations: 4 kB / 0.9884 GB, free: 3.523 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.02509, allocations: 7.984 kB / 0.9884 GB, free: 3.516 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.0251, allocations: 4 kB / 0.9884 GB, free: 3.512 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/0.02511, allocations: 7.938 kB / 0.9884 GB, free: 3.504 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.02627, allocations: 370.7 kB / 0.9888 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.02631, allocations: 19.84 kB / 0.9888 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.02636, allocations: 8.031 kB / 0.9888 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/0.02669, allocations: 27.92 kB / 0.9888 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.0268, allocations: 23.91 kB / 0.9889 GB, free: 3.031 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.02683, allocations: 4 kB / 0.9889 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001438/0.02697, allocations: 109.3 kB / 0.989 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.3e-07/0.02697, allocations: 0 / 0.989 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005851/0.02756, allocations: 43.95 kB / 0.989 GB, free: 2.879 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.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.0002303/0.02779, allocations: 103.7 kB / 0.9891 GB, free: 2.77 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0008449/0.02863, allocations: 159.8 kB / 0.9893 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.02863, allocations: 0 / 0.9893 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003872/0.02902, allocations: 80.28 kB / 0.9893 GB, free: 2.535 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.02966, allocations: 35.72 kB / 0.9894 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.03092, allocations: 358.3 kB / 0.9897 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.03111, allocations: 120.3 kB / 0.9898 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001226/0.03123, allocations: 17.58 kB / 0.9899 GB, free: 1.949 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.03135, allocations: 20.5 kB / 0.9899 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of SimCode: time 4.71e-07/0.03135, allocations: 0 / 0.9899 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of Templates: time 0.01011/0.04146, allocations: 1.733 MB / 0.9916 GB, free: 236 kB / 0.8887 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.291430775076151]