Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.239/2.239, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 187.8 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 223.1 MB / 0.7992 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 93.34 kB / 0.9396 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004394, allocations: 12.03 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2989, allocations: 143 MB / 1.229 GB, free: 85.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2107/0.5097, allocations: 149.6 MB / 1.375 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.51, allocations: 79.95 kB / 1.375 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.005893/0.5159, allocations: 2.054 MB / 1.377 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.034e-06/0.516, allocations: 0 / 1.377 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.516, allocations: 0 / 1.377 GB, free: 13.61 MB / 0.8855 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.0003644/0.5164, allocations: 336.3 kB / 1.378 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.5164, allocations: 12.56 kB / 1.378 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.917e-05/0.5165, allocations: 3.938 kB / 1.378 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.5166, allocations: 163 kB / 1.378 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.5166, allocations: 4 kB / 1.378 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.5167, allocations: 3.906 kB / 1.378 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.5168, allocations: 49.69 kB / 1.378 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.5168, allocations: 3.938 kB / 1.378 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.5169, allocations: 7.938 kB / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.5169, allocations: 0 / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.473e-05/0.5169, allocations: 11.98 kB / 1.378 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002067/0.5171, allocations: 165.7 kB / 1.378 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.5173, allocations: 42.56 kB / 1.378 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.5174, allocations: 85.09 kB / 1.378 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.5174, allocations: 38.55 kB / 1.378 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.5174, allocations: 0 / 1.378 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0013/0.5187, allocations: 484.3 kB / 1.379 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.5188, allocations: 55.41 kB / 1.379 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.337e-05/0.5188, allocations: 85 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.5189, allocations: 25.7 kB / 1.379 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/0.5189, allocations: 84.14 kB / 1.379 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.5189, allocations: 15.72 kB / 1.379 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.519, allocations: 8.125 kB / 1.379 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.5191, allocations: 318.8 kB / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.742e-05/0.5191, allocations: 12 kB / 1.379 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.419e-05/0.5191, allocations: 15.98 kB / 1.379 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.64e-05/0.5192, allocations: 15.98 kB / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.5192, allocations: 0 / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001117/0.5193, allocations: 73.77 kB / 1.379 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5193, allocations: 8 kB / 1.379 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.5193, allocations: 0 / 1.379 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.5194, allocations: 0 / 1.379 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.761e-05/0.5195, allocations: 19.98 kB / 1.379 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.5195, allocations: 4.062 kB / 1.379 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.405e-05/0.5195, allocations: 0 / 1.379 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.5195, allocations: 4 kB / 1.379 GB, free: 11.2 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.11e-05/0.5196, allocations: 117.7 kB / 1.38 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-06/0.5196, allocations: 0 / 1.38 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001715/0.5198, allocations: 85.58 kB / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.5198, allocations: 4 kB / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5198, allocations: 0 / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.5198, allocations: 0 / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.52, allocations: 173.5 kB / 1.38 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.52, allocations: 4 kB / 1.38 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.901e-05/0.5201, allocations: 8 kB / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.5201, allocations: 0 / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.5201, allocations: 8 kB / 1.38 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.5201, allocations: 4.172 kB / 1.38 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5201, allocations: 0 / 1.38 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.5203, allocations: 121 kB / 1.38 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.5203, allocations: 89.08 kB / 1.38 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.5204, allocations: 0 / 1.38 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.191e-05/0.5204, allocations: 4 kB / 1.38 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.283e-05/0.5204, allocations: 4 kB / 1.38 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.5204, allocations: 3.984 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.111e-05/0.5205, allocations: 83.22 kB / 1.38 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5205, allocations: 4.156 kB / 1.38 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002155/0.5207, allocations: 39.94 kB / 1.38 GB, free: 10.36 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002549/0.521, allocations: 140 kB / 1.38 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001155/0.5211, allocations: 39.92 kB / 1.38 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.5211, allocations: 4 kB / 1.38 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 3.493e-05/0.5212, allocations: 19.98 kB / 1.38 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.5213, allocations: 7.938 kB / 1.38 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003307/0.5216, allocations: 156.8 kB / 1.381 GB, free: 9.961 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.5219, allocations: 0.6848 MB / 1.381 GB, free: 9.25 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.274e-05/0.522, allocations: 4.188 kB / 1.381 GB, free: 9.242 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.146e-05/0.522, allocations: 11.44 kB / 1.381 GB, free: 9.234 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/0.522, allocations: 0 / 1.381 GB, free: 9.234 MB / 0.8855 GB Notification: Performance of Templates: time 0.00301/0.525, allocations: 0.717 MB / 1.382 GB, free: 8.523 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches