Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.403/2.403, allocations: 390.5 MB / 398 MB, free: 10.93 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.001309/0.001309, allocations: 176.8 kB / 491.2 MB, free: 1.551 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.57/1.57, allocations: 221.5 MB / 0.7868 GB, free: 13.25 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.001133/0.001133, allocations: 87.59 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.211e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3572, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.462, allocations: 149.9 MB / 1.359 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/1.462, allocations: 81.98 kB / 1.359 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009724/1.472, allocations: 2.404 MB / 1.361 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.924e-06/1.472, allocations: 3.938 kB / 1.361 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.385e-05/1.472, allocations: 0 / 1.361 GB, free: 33.15 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.000387/1.473, allocations: 343.9 kB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/1.473, allocations: 7.688 kB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.402e-05/1.473, allocations: 5.828 kB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/1.473, allocations: 171 kB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/1.473, allocations: 2.812 kB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/1.473, allocations: 7.75 kB / 1.362 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001118/1.473, allocations: 27.2 kB / 1.362 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.601e-05/1.473, allocations: 44.36 kB / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/1.473, allocations: 0 / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/1.473, allocations: 0 / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/1.473, allocations: 3.344 kB / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/1.473, allocations: 143.7 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/1.474, allocations: 52.58 kB / 1.362 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.506e-05/1.474, allocations: 26.91 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004211/1.474, allocations: 0.552 MB / 1.362 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/1.474, allocations: 37.81 kB / 1.363 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.843e-06/1.474, allocations: 4 kB / 1.363 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.01749/1.492, allocations: 3.364 MB / 1.366 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/1.492, allocations: 59.23 kB / 1.366 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/1.492, allocations: 89.97 kB / 1.366 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0001118/1.492, allocations: 29.64 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.76e-05/1.492, allocations: 80.14 kB / 1.366 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/1.492, allocations: 60.64 kB / 1.366 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/1.492, allocations: 128 / 1.366 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001292/1.492, allocations: 320.3 kB / 1.366 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005823/1.493, allocations: 303.3 kB / 1.367 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005659/1.494, allocations: 307.1 kB / 1.367 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009561/1.494, allocations: 376.4 kB / 1.367 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/1.495, allocations: 0 / 1.367 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001983/1.496, allocations: 0.7858 MB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.497, allocations: 3.625 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.497, allocations: 1.172 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/1.497, allocations: 3.875 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/1.498, allocations: 94.22 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/1.498, allocations: 5.156 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007203/1.498, allocations: 7.797 kB / 1.368 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/1.499, allocations: 32.27 kB / 1.368 GB, free: 30.08 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.0002779/1.499, allocations: 104.9 kB / 1.368 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/1.499, allocations: 9.219 kB / 1.368 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004807/1.504, allocations: 1.345 MB / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/1.504, allocations: 7.844 kB / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.504, allocations: 0 / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/1.504, allocations: 7.094 kB / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003676/1.508, allocations: 1.698 MB / 1.371 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.508, allocations: 0 / 1.371 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/1.509, allocations: 110.3 kB / 1.371 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.715e-05/1.509, allocations: 10.42 kB / 1.371 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/1.509, allocations: 30.45 kB / 1.371 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.363e-06/1.509, allocations: 7.812 kB / 1.372 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.509, allocations: 0 / 1.372 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/1.512, allocations: 1.398 MB / 1.373 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.822e-05/1.512, allocations: 88.83 kB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/1.512, allocations: 8.016 kB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007304/1.513, allocations: 10.08 kB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/1.513, allocations: 39.33 kB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.965e-05/1.513, allocations: 26.81 kB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.037e-05/1.513, allocations: 78.94 kB / 1.373 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.513, allocations: 0 / 1.373 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008983/1.514, allocations: 205.9 kB / 1.373 GB, free: 28.91 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.0007434/1.515, allocations: 261.5 kB / 1.374 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001438/1.516, allocations: 0.6966 MB / 1.374 GB, free: 28.76 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.516, allocations: 3.875 kB / 1.374 GB, free: 28.76 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0007513/1.517, allocations: 425.1 kB / 1.375 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/1.517, allocations: 3.875 kB / 1.375 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/1.522, allocations: 0.6829 MB / 1.375 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/1.522, allocations: 0.7231 MB / 1.376 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0025/1.525, allocations: 293.8 kB / 1.376 GB, free: 27.78 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007743/1.526, allocations: 95 kB / 1.376 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of SimCode: time 8.72e-07/1.526, allocations: 0 / 1.376 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of Templates: time 0.02352/1.549, allocations: 10.14 MB / 1.386 GB, free: 26.18 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches