Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.00171/0.00171, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 223.2 MB / 239.9 MB, free: 5.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.634/2.634, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003765/0.0003765, allocations: 12 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7564/0.7568, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006584/0.7575, allocations: 337.1 kB / 0.9538 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.7588, allocations: 1.233 MB / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.495e-05/0.7588, allocations: 0.9375 kB / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.252e-05/0.7588, allocations: 0 / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.719e-05/0.7588, allocations: 0 / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.7591, allocations: 56.8 kB / 0.9551 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.521e-05/0.7592, allocations: 13.58 kB / 0.9551 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.641e-05/0.7592, allocations: 5.781 kB / 0.9551 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.173e-05/0.7593, allocations: 13.19 kB / 0.9551 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.189e-05/0.7593, allocations: 11.44 kB / 0.9551 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.7594, allocations: 2.375 kB / 0.9551 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.7595, allocations: 91.66 kB / 0.9552 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.7596, allocations: 13.75 kB / 0.9552 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.787e-05/0.7596, allocations: 27.98 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.718e-05/0.7597, allocations: 44.94 kB / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.7597, allocations: 0 / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.023e-06/0.7597, allocations: 0 / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.7597, allocations: 4 kB / 0.9553 GB, free: 6.676 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003716/0.7601, allocations: 346.6 kB / 0.9557 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.7601, allocations: 9.062 kB / 0.9557 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.7602, allocations: 6.328 kB / 0.9557 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.029e-05/0.7603, allocations: 168.1 kB / 0.9558 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.7603, allocations: 1.594 kB / 0.9558 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.7603, allocations: 2.75 kB / 0.9558 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.7604, allocations: 52.8 kB / 0.9559 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.7605, allocations: 5.188 kB / 0.9559 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.7605, allocations: 3.938 kB / 0.9559 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.7605, allocations: 5.125 kB / 0.9559 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.206e-05/0.7606, allocations: 25 kB / 0.9559 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.7607, allocations: 169.9 kB / 0.9561 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.7608, allocations: 59.31 kB / 0.9561 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003517/0.7612, allocations: 0.5683 MB / 0.9567 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.7612, allocations: 32.09 kB / 0.9567 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.7612, allocations: 0 / 0.9567 GB, free: 5.062 MB / 0.7169 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01807/0.7793, allocations: 4.279 MB / 0.9609 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.7794, allocations: 53.5 kB / 0.961 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.955e-05/0.7794, allocations: 91.86 kB / 0.961 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.992e-05/0.7795, allocations: 30.8 kB / 0.9611 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.218e-05/0.7795, allocations: 80.14 kB / 0.9611 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.97e-05/0.7797, allocations: 61.73 kB / 0.9612 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.7797, allocations: 4.969 kB / 0.9612 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.42e-05/0.7798, allocations: 313.2 kB / 0.9615 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004726/0.7803, allocations: 318 kB / 0.9618 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.7808, allocations: 305.6 kB / 0.9621 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007175/0.7815, allocations: 388.1 kB / 0.9625 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.7815, allocations: 5.438 kB / 0.9625 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00149/0.783, allocations: 0.8043 MB / 0.9633 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.783, allocations: 9.469 kB / 0.9633 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.783, allocations: 0 / 0.9633 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.7831, allocations: 5.547 kB / 0.9633 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008474/0.7839, allocations: 92.09 kB / 0.9634 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.7839, allocations: 1.031 kB / 0.9634 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/0.7844, allocations: 14 kB / 0.9634 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.03e-05/0.7845, allocations: 31.3 kB / 0.9634 GB, free: 1.035 MB / 0.7169 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 (18): * Single equations (assignments): 18 * 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 0.0001899/0.7847, allocations: 116.9 kB / 0.9635 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.7848, allocations: 4.188 kB / 0.9635 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003276/0.7881, allocations: 1.409 MB / 0.9649 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.7881, allocations: 8.234 kB / 0.9649 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.7881, allocations: 0.9688 kB / 0.9649 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.7881, allocations: 4 kB / 0.9649 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003298/0.7914, allocations: 1.807 MB / 0.9667 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.7915, allocations: 0.9062 kB / 0.9667 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000821/0.7923, allocations: 105.4 kB / 0.9668 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.7923, allocations: 5.016 kB / 0.9668 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.319e-05/0.7924, allocations: 34.38 kB / 0.9668 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.7924, allocations: 1.594 kB / 0.9668 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.7924, allocations: 1.094 kB / 0.9668 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.7952, allocations: 1.482 MB / 0.9683 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.7953, allocations: 90.3 kB / 0.9684 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/0.7954, allocations: 10.12 kB / 0.9684 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.7959, allocations: 14.78 kB / 0.9684 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.7961, allocations: 49.62 kB / 0.9684 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-05/0.7962, allocations: 30.83 kB / 0.9685 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.407e-05/0.7962, allocations: 76.75 kB / 0.9685 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7962, allocations: 0 / 0.9685 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000756/0.797, allocations: 178.1 kB / 0.9687 GB, free: 13.69 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.0006364/0.7977, allocations: 223.7 kB / 0.9689 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001548/0.7992, allocations: 0.7201 MB / 0.9696 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.7992, allocations: 3.938 kB / 0.9696 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006677/0.7999, allocations: 450.5 kB / 0.97 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.8001, allocations: 14.64 kB / 0.9701 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.8036, allocations: 0.8551 MB / 0.9709 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.804, allocations: 0.7201 MB / 0.9716 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00145/0.8054, allocations: 296.8 kB / 0.9719 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005124/0.8059, allocations: 93.66 kB / 0.972 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of SimCode: time 7.61e-07/0.806, allocations: 0 / 0.972 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of Templates: time 0.01564/0.8216, allocations: 10.39 MB / 0.9821 GB, free: 2.254 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches