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.271/2.271, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001523/0.001523, allocations: 184.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 221.3 MB / 0.7915 GB, free: 5.379 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.0008352/0.0008356, allocations: 102.5 kB / 0.9318 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.053e-05/3.091e-05, allocations: 7.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3038, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.023/1.326, allocations: 150.6 MB / 1.366 GB, free: 3.465 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/1.327, allocations: 82.16 kB / 1.366 GB, free: 3.418 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006965/1.334, allocations: 2.406 MB / 1.368 GB, free: 1.371 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.392e-06/1.334, allocations: 3.938 kB / 1.368 GB, free: 1.367 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.883e-06/1.334, allocations: 0 / 1.368 GB, free: 1.367 MB / 0.823 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.0003241/1.334, allocations: 350.4 kB / 1.369 GB, free: 0.9844 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/1.334, allocations: 8.031 kB / 1.369 GB, free: 0.9766 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.304e-05/1.334, allocations: 4.625 kB / 1.369 GB, free: 0.9727 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/1.334, allocations: 170.9 kB / 1.369 GB, free: 0.7656 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/1.334, allocations: 0.8125 kB / 1.369 GB, free: 0.7656 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/1.334, allocations: 10.97 kB / 1.369 GB, free: 0.7578 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/1.334, allocations: 53.11 kB / 1.369 GB, free: 0.707 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/1.334, allocations: 0 / 1.369 GB, free: 0.707 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/1.335, allocations: 8 kB / 1.369 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/1.335, allocations: 0 / 1.369 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.01e-05/1.335, allocations: 23.42 kB / 1.369 GB, free: 0.6797 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/1.335, allocations: 164.4 kB / 1.369 GB, free: 488 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/1.335, allocations: 68.73 kB / 1.369 GB, free: 424 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.328e-05/1.335, allocations: 27.86 kB / 1.369 GB, free: 400 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004873/1.335, allocations: 0.5544 MB / 1.37 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/1.336, allocations: 34.56 kB / 1.37 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/1.336, allocations: 0 / 1.37 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.01488/1.35, allocations: 3.683 MB / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/1.351, allocations: 59.33 kB / 1.373 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/1.351, allocations: 89 kB / 1.373 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.036e-05/1.351, allocations: 29.08 kB / 1.373 GB, free: 12.22 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/1.351, allocations: 84.27 kB / 1.374 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/1.351, allocations: 62.09 kB / 1.374 GB, free: 12.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-05/1.351, allocations: 3.312 kB / 1.374 GB, free: 12.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001666/1.351, allocations: 318.8 kB / 1.374 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/1.352, allocations: 295.4 kB / 1.374 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/1.352, allocations: 299.2 kB / 1.374 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/1.353, allocations: 375.9 kB / 1.375 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/1.353, allocations: 0 / 1.375 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001469/1.354, allocations: 0.7749 MB / 1.376 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/1.354, allocations: 8 kB / 1.376 GB, free: 10.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/1.354, allocations: 4 kB / 1.376 GB, free: 10.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/1.354, allocations: 0 / 1.376 GB, free: 10.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/1.355, allocations: 91.94 kB / 1.376 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/1.355, allocations: 3.953 kB / 1.376 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/1.356, allocations: 11.38 kB / 1.376 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-05/1.356, allocations: 35.97 kB / 1.376 GB, free: 10.52 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.0001816/1.356, allocations: 111.9 kB / 1.376 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/1.356, allocations: 4 kB / 1.376 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/1.359, allocations: 1.381 MB / 1.377 GB, free: 9.48 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-06/1.359, allocations: 4 kB / 1.377 GB, free: 9.477 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.359, allocations: 0 / 1.377 GB, free: 9.477 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/1.36, allocations: 7.938 kB / 1.377 GB, free: 9.469 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/1.362, allocations: 1.783 MB / 1.379 GB, free: 8.117 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/1.362, allocations: 3.953 kB / 1.379 GB, free: 8.113 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007701/1.363, allocations: 110.5 kB / 1.379 GB, free: 8.008 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/1.363, allocations: 3.938 kB / 1.379 GB, free: 8.004 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.321e-05/1.363, allocations: 30 kB / 1.379 GB, free: 7.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/1.363, allocations: 0 / 1.379 GB, free: 7.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/1.363, allocations: 0 / 1.379 GB, free: 7.98 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/1.366, allocations: 1.452 MB / 1.38 GB, free: 7.066 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.768e-05/1.366, allocations: 87.64 kB / 1.381 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.94e-05/1.366, allocations: 7.547 kB / 1.381 GB, free: 6.961 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/1.366, allocations: 15.31 kB / 1.381 GB, free: 6.953 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/1.366, allocations: 35.97 kB / 1.381 GB, free: 6.918 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.378e-05/1.367, allocations: 31.12 kB / 1.381 GB, free: 6.891 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.021e-05/1.367, allocations: 79.22 kB / 1.381 GB, free: 6.812 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.367, allocations: 4 kB / 1.381 GB, free: 6.809 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007605/1.367, allocations: 219.2 kB / 1.381 GB, free: 6.605 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.0006348/1.368, allocations: 262.1 kB / 1.381 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001204/1.369, allocations: 0.7012 MB / 1.382 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.369, allocations: 0 / 1.382 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006297/1.37, allocations: 441.2 kB / 1.382 GB, free: 5.684 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/1.37, allocations: 23.5 kB / 1.382 GB, free: 5.668 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/1.373, allocations: 0.721 MB / 1.383 GB, free: 5.109 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/1.374, allocations: 0.7221 MB / 1.384 GB, free: 4.355 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.001473/1.375, allocations: 289.3 kB / 1.384 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005593/1.376, allocations: 94.59 kB / 1.384 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of SimCode: time 1.412e-06/1.376, allocations: 0 / 1.384 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of Templates: time 0.01704/1.393, allocations: 10.13 MB / 1.394 GB, free: 9.891 MB / 0.8542 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