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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000961/0.000961, allocations: 99.39 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.000964/0.000964, allocations: 177.3 kB / 15.94 MB, free: 228 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.486/1.486, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.827/2.827, allocations: 436.5 MB / 0.7104 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003564, allocations: 15.94 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8261/0.8265, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0008705/0.8274, allocations: 345.4 kB / 1.021 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.8292, allocations: 1.225 MB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.345e-05/0.8292, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.574e-05/0.8292, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.435e-05/0.8293, allocations: 0 / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.8296, allocations: 63.8 kB / 1.022 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.296e-05/0.8297, allocations: 7.984 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.893e-05/0.8297, allocations: 0 / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.907e-05/0.8298, allocations: 19.92 kB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.117e-05/0.8299, allocations: 11.98 kB / 1.022 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.8299, allocations: 0 / 1.022 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.8301, allocations: 95.81 kB / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.468e-05/0.8301, allocations: 8 kB / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.745e-05/0.8301, allocations: 25.7 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.8303, allocations: 43.94 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.8303, allocations: 4 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8303, allocations: 0 / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.8303, allocations: 4 kB / 1.023 GB, free: 15.23 MB / 0.7794 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.0004671/0.8308, allocations: 349.2 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.8308, allocations: 8.031 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.8309, allocations: 4 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.831, allocations: 163 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.831, allocations: 0 / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.8311, allocations: 12 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.8312, allocations: 57.61 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.8312, allocations: 0 / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.8312, allocations: 0 / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.8312, allocations: 0 / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.149e-05/0.8313, allocations: 27.98 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002024/0.8315, allocations: 177.4 kB / 1.023 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.8317, allocations: 62.48 kB / 1.023 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005355/0.8322, allocations: 0.5583 MB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.8322, allocations: 34.56 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.8322, allocations: 0 / 1.024 GB, free: 13.51 MB / 0.7794 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.01951/0.8518, allocations: 4.279 MB / 1.028 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.8519, allocations: 55.34 kB / 1.028 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.852, allocations: 101.8 kB / 1.028 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/0.8521, allocations: 25.7 kB / 1.028 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.8522, allocations: 80.14 kB / 1.028 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.8523, allocations: 55.17 kB / 1.029 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.775e-05/0.8524, allocations: 4.125 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000172/0.8525, allocations: 322.8 kB / 1.029 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005224/0.8531, allocations: 307.9 kB / 1.029 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.8536, allocations: 306.2 kB / 1.029 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007564/0.8543, allocations: 395.9 kB / 1.03 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.8544, allocations: 0 / 1.03 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001573/0.8559, allocations: 0.8039 MB / 1.031 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.856, allocations: 4 kB / 1.031 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.856, allocations: 0 / 1.031 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.856, allocations: 0 / 1.031 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008303/0.8569, allocations: 99.88 kB / 1.031 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.8569, allocations: 4 kB / 1.031 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.8574, allocations: 8 kB / 1.031 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/0.8575, allocations: 31.98 kB / 1.031 GB, free: 6.469 MB / 0.7794 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.0002096/0.8577, allocations: 129.7 kB / 1.031 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.109e-05/0.8578, allocations: 4 kB / 1.031 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003273/0.8611, allocations: 1.396 MB / 1.032 GB, free: 4.926 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.8611, allocations: 8 kB / 1.032 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.8611, allocations: 4 kB / 1.032 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.8611, allocations: 0 / 1.032 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.8642, allocations: 1.817 MB / 1.034 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.8642, allocations: 0 / 1.034 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007677/0.865, allocations: 107.9 kB / 1.034 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.865, allocations: 8.031 kB / 1.034 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.893e-05/0.8651, allocations: 24 kB / 1.034 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.8651, allocations: 4 kB / 1.034 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.8651, allocations: 0 / 1.034 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.8675, allocations: 1.479 MB / 1.036 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.8676, allocations: 88.98 kB / 1.036 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.8677, allocations: 12.06 kB / 1.036 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005124/0.8682, allocations: 8 kB / 1.036 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.8683, allocations: 55.84 kB / 1.036 GB, free: 1.211 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.911e-05/0.8684, allocations: 28 kB / 1.036 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.271e-05/0.8684, allocations: 79.28 kB / 1.036 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8684, allocations: 0 / 1.036 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006592/0.8691, allocations: 176 kB / 1.036 GB, free: 0.9336 MB / 0.7794 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.0006093/0.8697, allocations: 231.1 kB / 1.036 GB, free: 0.6992 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001236/0.871, allocations: 0.7183 MB / 1.037 GB, free: 15.98 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.871, allocations: 3.938 kB / 1.037 GB, free: 15.98 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006475/0.8716, allocations: 451.8 kB / 1.037 GB, free: 15.54 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.8718, allocations: 7.938 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.8752, allocations: 0.8504 MB / 1.038 GB, free: 14.65 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.8756, allocations: 0.7184 MB / 1.039 GB, free: 13.91 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001462/0.8771, allocations: 297.5 kB / 1.039 GB, free: 13.62 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005123/0.8776, allocations: 91.41 kB / 1.039 GB, free: 13.53 MB / 0.795 GB Notification: Performance of SimCode: time 1.363e-06/0.8776, allocations: 0 / 1.039 GB, free: 13.53 MB / 0.795 GB Notification: Performance of Templates: time 0.01767/0.8953, allocations: 10.38 MB / 1.049 GB, free: 3.199 MB / 0.795 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