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.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.001438/0.001438, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001356/0.001356, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 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 0.9486/0.9486, allocations: 177.1 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.353/2.353, allocations: 438.1 MB / 0.682 GB, free: 14.12 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 0.8898 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.603e-05/2.85e-05, allocations: 5.406 kB / 0.8898 GB, free: 9.668 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.005042/0.00507, allocations: 1.033 MB / 0.8908 GB, free: 8.633 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.006357, allocations: 1.045 MB / 0.8918 GB, free: 7.574 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.006475, allocations: 7.938 kB / 0.8919 GB, free: 7.566 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.006607, allocations: 23.73 kB / 0.8919 GB, free: 7.543 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.274e-05/0.00667, allocations: 19.73 kB / 0.8919 GB, free: 7.523 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.006956, allocations: 75.8 kB / 0.892 GB, free: 7.449 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.007136, allocations: 184.1 kB / 0.8921 GB, free: 7.27 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003173/0.01031, allocations: 52.52 kB / 0.8922 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.01046, allocations: 103.8 kB / 0.8923 GB, free: 7.113 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.292e-05/0.01055, allocations: 55.8 kB / 0.8923 GB, free: 7.059 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.01058, allocations: 20 kB / 0.8924 GB, free: 7.039 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.255e-05/0.01065, allocations: 19.98 kB / 0.8924 GB, free: 7.02 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 3.835e-05/0.01068, allocations: 35.84 kB / 0.8924 GB, free: 6.984 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.809e-05/0.01073, allocations: 55.88 kB / 0.8925 GB, free: 6.93 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.01094, allocations: 131.4 kB / 0.8926 GB, free: 6.801 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.01095, allocations: 0 / 0.8926 GB, free: 6.801 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.002e-06/0.01095, allocations: 4 kB / 0.8926 GB, free: 6.797 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.01095, allocations: 0 / 0.8926 GB, free: 6.797 MB / 0.8542 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.0008608/0.01181, allocations: 0.5073 MB / 0.8931 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.01185, allocations: 8.031 kB / 0.8931 GB, free: 6.238 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.01197, allocations: 40.77 kB / 0.8931 GB, free: 6.199 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.01216, allocations: 160.9 kB / 0.8933 GB, free: 6.016 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.01218, allocations: 16.36 kB / 0.8933 GB, free: 6 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.01221, allocations: 28.36 kB / 0.8933 GB, free: 5.973 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.01241, allocations: 146 kB / 0.8935 GB, free: 5.816 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.01242, allocations: 4.188 kB / 0.8935 GB, free: 5.812 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.01243, allocations: 12.12 kB / 0.8935 GB, free: 5.801 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.01244, allocations: 4 kB / 0.8935 GB, free: 5.797 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.975e-05/0.01251, allocations: 48.27 kB / 0.8935 GB, free: 5.75 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.01305, allocations: 451.7 kB / 0.894 GB, free: 5.281 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.01323, allocations: 99.2 kB / 0.8941 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.347e-05/0.01327, allocations: 39.66 kB / 0.8941 GB, free: 5.129 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.0133, allocations: 11.98 kB / 0.8941 GB, free: 5.117 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/0.0134, allocations: 116.6 kB / 0.8942 GB, free: 4.984 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=19): time 1.944e-06/0.0134, allocations: 4 kB / 0.8942 GB, free: 4.98 MB / 0.8542 GB Notification: Performance of matching and sorting (n=19): time 0.0001849/0.01359, allocations: 147.4 kB / 0.8944 GB, free: 4.832 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.05e-05/0.01361, allocations: 55.41 kB / 0.8944 GB, free: 4.766 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.852e-05/0.01369, allocations: 195.5 kB / 0.8946 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.01371, allocations: 33.7 kB / 0.8946 GB, free: 4.52 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.855e-05/0.01376, allocations: 167.2 kB / 0.8948 GB, free: 4.348 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.726e-05/0.0138, allocations: 71.39 kB / 0.8949 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-05/0.01385, allocations: 47.34 kB / 0.8949 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.01395, allocations: 0.4962 MB / 0.8954 GB, free: 3.715 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.695e-05/0.01402, allocations: 23.98 kB / 0.8954 GB, free: 3.691 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.743e-05/0.01406, allocations: 57.83 kB / 0.8955 GB, free: 3.629 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.644e-05/0.01414, allocations: 85.28 kB / 0.8956 GB, free: 3.539 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.01414, allocations: 0 / 0.8956 GB, free: 3.539 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001364/0.01428, allocations: 144.1 kB / 0.8957 GB, free: 3.395 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.01429, allocations: 4 kB / 0.8957 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.0143, allocations: 0 / 0.8957 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.01431, allocations: 3.938 kB / 0.8957 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.993e-05/0.0144, allocations: 35.98 kB / 0.8957 GB, free: 3.352 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.0144, allocations: 0 / 0.8957 GB, free: 3.352 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.64e-05/0.01445, allocations: 23.88 kB / 0.8958 GB, free: 3.328 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.01445, allocations: 0 / 0.8958 GB, free: 3.328 MB / 0.8542 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 7.733e-05/0.01453, allocations: 168.5 kB / 0.8959 GB, free: 3.152 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.01455, allocations: 27.84 kB / 0.896 GB, free: 3.125 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.0147, allocations: 130.7 kB / 0.8961 GB, free: 2.988 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.0147, allocations: 4 kB / 0.8961 GB, free: 2.984 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.0147, allocations: 0 / 0.8961 GB, free: 2.984 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01471, allocations: 0 / 0.8961 GB, free: 2.984 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003736/0.01508, allocations: 0.4916 MB / 0.8966 GB, free: 2.438 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.01508, allocations: 8.031 kB / 0.8966 GB, free: 2.43 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.01517, allocations: 39.86 kB / 0.8966 GB, free: 2.391 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.01517, allocations: 4 kB / 0.8966 GB, free: 2.387 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.01518, allocations: 0 / 0.8966 GB, free: 2.387 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.01518, allocations: 4 kB / 0.8966 GB, free: 2.383 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.01519, allocations: 7.938 kB / 0.8966 GB, free: 2.375 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.0154, allocations: 352.4 kB / 0.897 GB, free: 1.988 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.351e-05/0.01542, allocations: 15.89 kB / 0.897 GB, free: 1.973 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.01543, allocations: 11.98 kB / 0.897 GB, free: 1.961 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.042e-05/0.01549, allocations: 16 kB / 0.897 GB, free: 1.945 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.01553, allocations: 27.83 kB / 0.897 GB, free: 1.918 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.01554, allocations: 12 kB / 0.897 GB, free: 1.906 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.227e-05/0.01559, allocations: 139.2 kB / 0.8972 GB, free: 1.77 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01559, allocations: 0 / 0.8972 GB, free: 1.77 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001663/0.01575, allocations: 31.95 kB / 0.8972 GB, free: 1.738 MB / 0.8542 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.0001036/0.01586, allocations: 103.2 kB / 0.8973 GB, free: 1.629 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001421/0.016, allocations: 105.8 kB / 0.8974 GB, free: 1.523 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.016, allocations: 4 kB / 0.8974 GB, free: 1.52 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.27e-05/0.01605, allocations: 55.53 kB / 0.8975 GB, free: 1.461 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.01627, allocations: 29.8 kB / 0.8975 GB, free: 1.434 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000553/0.01682, allocations: 392.9 kB / 0.8979 GB, free: 1 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.623e-05/0.01687, allocations: 72.08 kB / 0.8979 GB, free: 0.9023 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.973e-05/0.01692, allocations: 13.48 kB / 0.8979 GB, free: 0.8906 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.822e-05/0.01701, allocations: 102.2 kB / 0.898 GB, free: 0.7891 MB / 0.8542 GB Notification: Performance of SimCode: time 9.22e-07/0.01701, allocations: 0 / 0.898 GB, free: 0.7891 MB / 0.8542 GB Notification: Performance of Templates: time 0.00385/0.02086, allocations: 1.915 MB / 0.8999 GB, free: 14.91 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.325833831913769]