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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.202/2.202, allocations: 387.1 MB / 399.7 MB, free: 9.469 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.001198/0.001198, allocations: 176.9 kB / 492.3 MB, free: 0.5977 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.461/1.461, allocations: 221.3 MB / 0.7871 GB, free: 12.87 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.0009734/0.0009733, allocations: 95.31 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.311e-05/4.313e-05, allocations: 6.688 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2946, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.299, allocations: 149.8 MB / 1.359 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/1.299, allocations: 76.81 kB / 1.359 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007326/1.306, allocations: 2.404 MB / 1.361 GB, free: 34.58 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.474e-06/1.306, allocations: 0 / 1.361 GB, free: 34.58 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.636e-06/1.306, allocations: 0 / 1.361 GB, free: 34.58 MB / 0.8386 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.0003088/1.307, allocations: 349.6 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/1.307, allocations: 7.844 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/1.307, allocations: 8.344 kB / 1.361 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/1.307, allocations: 172 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/1.307, allocations: 7.031 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/1.307, allocations: 9.094 kB / 1.362 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/1.307, allocations: 48.64 kB / 1.362 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/1.307, allocations: 4 kB / 1.362 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/1.307, allocations: 0 / 1.362 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/1.307, allocations: 2.188 kB / 1.362 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.026e-05/1.307, allocations: 21.83 kB / 1.362 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/1.307, allocations: 165.3 kB / 1.362 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/1.307, allocations: 73.08 kB / 1.362 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.647e-05/1.307, allocations: 23.55 kB / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003741/1.308, allocations: 0.558 MB / 1.362 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/1.308, allocations: 32.06 kB / 1.362 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/1.308, allocations: 0 / 1.362 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.01465/1.323, allocations: 3.682 MB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/1.323, allocations: 55.36 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.768e-05/1.323, allocations: 88.94 kB / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.158e-05/1.323, allocations: 37.23 kB / 1.366 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.188e-05/1.323, allocations: 80.14 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.672e-05/1.323, allocations: 62.67 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/1.323, allocations: 2.938 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.036e-05/1.323, allocations: 316.2 kB / 1.367 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004448/1.324, allocations: 303.5 kB / 1.367 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/1.324, allocations: 297 kB / 1.367 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006756/1.325, allocations: 377.5 kB / 1.368 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/1.325, allocations: 0 / 1.368 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001302/1.326, allocations: 0.7798 MB / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/1.326, allocations: 7.688 kB / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/1.326, allocations: 0 / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/1.326, allocations: 0 / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007969/1.327, allocations: 92.45 kB / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/1.327, allocations: 0 / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/1.327, allocations: 11.23 kB / 1.369 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.298e-05/1.327, allocations: 36.95 kB / 1.369 GB, free: 31.44 MB / 0.8386 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 () * 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.0001684/1.328, allocations: 108.5 kB / 1.369 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.792e-05/1.328, allocations: 5.75 kB / 1.369 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003091/1.331, allocations: 1.381 MB / 1.37 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/1.331, allocations: 3.812 kB / 1.37 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/1.331, allocations: 3.875 kB / 1.37 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/1.331, allocations: 2.625 kB / 1.37 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002453/1.333, allocations: 1.787 MB / 1.372 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/1.333, allocations: 3.75 kB / 1.372 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007201/1.334, allocations: 109.5 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/1.334, allocations: 3.953 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.413e-05/1.334, allocations: 29.34 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/1.334, allocations: 4 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/1.334, allocations: 0 / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/1.336, allocations: 1.449 MB / 1.373 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/1.336, allocations: 95.62 kB / 1.373 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.918e-05/1.336, allocations: 3.438 kB / 1.373 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/1.337, allocations: 15.38 kB / 1.373 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/1.337, allocations: 40.41 kB / 1.373 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.809e-05/1.337, allocations: 26.5 kB / 1.373 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.973e-05/1.337, allocations: 87.16 kB / 1.374 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.61e-07/1.337, allocations: 4.094 kB / 1.374 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006075/1.338, allocations: 214.2 kB / 1.374 GB, free: 30.22 MB / 0.8386 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 () * 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.0004472/1.338, allocations: 267.1 kB / 1.374 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000965/1.339, allocations: 0.7038 MB / 1.375 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/1.339, allocations: 3.938 kB / 1.375 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000523/1.34, allocations: 442.8 kB / 1.375 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/1.34, allocations: 12.56 kB / 1.375 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003078/1.343, allocations: 0.726 MB / 1.376 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/1.343, allocations: 0.7164 MB / 1.377 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.001293/1.344, allocations: 295 kB / 1.377 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005097/1.345, allocations: 94.06 kB / 1.377 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of SimCode: time 6.21e-07/1.345, allocations: 0 / 1.377 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of Templates: time 0.01395/1.359, allocations: 10.13 MB / 1.387 GB, free: 27.15 MB / 0.8386 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