Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008853/0.008853, allocations: 99.92 kB / 15.73 MB, free: 6.016 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.002134/0.002134, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.448/2.448, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 1.019 GB, free: 9.355 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8594/0.8608, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001885/0.8627, allocations: 0.6068 MB / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004966/0.8632, allocations: 157.4 kB / 1.167 GB, free: 3.043 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.652e-05/0.8633, allocations: 0 / 1.167 GB, free: 3.043 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.8633, allocations: 3.938 kB / 1.167 GB, free: 3.039 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.029e-05/0.8633, allocations: 0 / 1.167 GB, free: 3.039 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.8637, allocations: 39.89 kB / 1.167 GB, free: 3 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.662e-05/0.8638, allocations: 12 kB / 1.167 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.045e-05/0.8638, allocations: 7.984 kB / 1.167 GB, free: 2.98 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.197e-05/0.8639, allocations: 7.938 kB / 1.167 GB, free: 2.973 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.11e-05/0.8639, allocations: 4 kB / 1.167 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.864, allocations: 0 / 1.167 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-05/0.8641, allocations: 43.94 kB / 1.168 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.8641, allocations: 7.938 kB / 1.168 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.214e-05/0.8641, allocations: 4 kB / 1.168 GB, free: 2.914 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.8642, allocations: 31.89 kB / 1.168 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.8643, allocations: 3.938 kB / 1.168 GB, free: 2.879 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8643, allocations: 0 / 1.168 GB, free: 2.879 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.8643, allocations: 4 kB / 1.168 GB, free: 2.875 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004479/0.8647, allocations: 336 kB / 1.168 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.8648, allocations: 16.56 kB / 1.168 GB, free: 2.484 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.8648, allocations: 0.9375 kB / 1.168 GB, free: 2.484 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.865, allocations: 164.4 kB / 1.168 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.865, allocations: 4.375 kB / 1.168 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.865, allocations: 384 / 1.168 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.8651, allocations: 46.25 kB / 1.168 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.8651, allocations: 4.188 kB / 1.168 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.8652, allocations: 3.938 kB / 1.168 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.8652, allocations: 4 kB / 1.168 GB, free: 2.219 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.112e-05/0.8652, allocations: 11.98 kB / 1.168 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.8654, allocations: 157.7 kB / 1.168 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.8655, allocations: 46.5 kB / 1.168 GB, free: 1.949 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.047e-05/0.8656, allocations: 20.97 kB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001062/0.8657, allocations: 85.11 kB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.8657, allocations: 30.56 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.8658, allocations: 0 / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.001355/0.8671, allocations: 0.4885 MB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.8672, allocations: 59.39 kB / 1.169 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.295e-05/0.8672, allocations: 97.8 kB / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.8673, allocations: 33.83 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.032e-05/0.8673, allocations: 80.14 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.8673, allocations: 19.8 kB / 1.169 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.8674, allocations: 25.7 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.715e-05/0.8675, allocations: 314.8 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.281e-05/0.8675, allocations: 15.98 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.256e-05/0.8675, allocations: 8 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.203e-05/0.8676, allocations: 37.08 kB / 1.17 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8676, allocations: 3.984 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000117/0.8678, allocations: 81.56 kB / 1.17 GB, free: 416 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.8678, allocations: 11.94 kB / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.8678, allocations: 0 / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.8678, allocations: 0 / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.034e-05/0.8679, allocations: 12 kB / 1.17 GB, free: 392 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.8679, allocations: 0 / 1.17 GB, free: 392 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.359e-05/0.8679, allocations: 0 / 1.17 GB, free: 392 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.868, allocations: 4 kB / 1.17 GB, free: 388 kB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.866e-05/0.868, allocations: 113.8 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.8681, allocations: 7.938 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.8682, allocations: 85.58 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.8683, allocations: 0 / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.8683, allocations: 0 / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.8683, allocations: 4 kB / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.8684, allocations: 161.7 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.8684, allocations: 3.938 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.862e-05/0.8685, allocations: 11.98 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.8685, allocations: 7.938 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.8685, allocations: 4 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8685, allocations: 0 / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.8685, allocations: 0 / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.8687, allocations: 117 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.8688, allocations: 93.06 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.8688, allocations: 64 / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.682e-05/0.8689, allocations: 7.984 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.798e-05/0.8689, allocations: 4 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.8689, allocations: 12 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.937e-05/0.8689, allocations: 79.28 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8689, allocations: 0 / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002296/0.8692, allocations: 31.92 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0002416/0.8694, allocations: 131.2 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001217/0.8696, allocations: 39.91 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.8696, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.697e-05/0.8696, allocations: 24.09 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001468/0.8698, allocations: 4 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003251/0.8701, allocations: 133.3 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.8703, allocations: 0.6807 MB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.617e-05/0.8704, allocations: 8.484 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.8704, allocations: 19.42 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.8704, allocations: 0 / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of Templates: time 0.00337/0.8738, allocations: 0.8817 MB / 1.172 GB, free: 13.58 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches