Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001184/0.001184, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001268, allocations: 196.9 kB / 16.79 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.519/2.519, allocations: 437 MB / 0.7106 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001377, allocations: 63.91 kB / 0.8692 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6374/0.6388, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002067/0.6409, allocations: 0.6839 MB / 1.018 GB, free: 2.102 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001734/0.6426, allocations: 1.275 MB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.954e-05/0.6427, allocations: 4 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.354e-05/0.6427, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.322e-05/0.6428, allocations: 3.938 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.6431, allocations: 55.88 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.555e-05/0.6432, allocations: 19.98 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.293e-05/0.6432, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.909e-05/0.6433, allocations: 19.97 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.669e-05/0.6434, allocations: 15.92 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.6434, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002298/0.6436, allocations: 99.83 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.6436, allocations: 8 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.6437, allocations: 19.86 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.6438, allocations: 43.94 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.6438, allocations: 0 / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6438, allocations: 0 / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.6438, allocations: 0 / 1.019 GB, free: 0.5234 MB / 0.7637 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.0004911/0.6443, allocations: 353.6 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.6444, allocations: 8.031 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.6444, allocations: 4.938 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.6445, allocations: 160.4 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.6445, allocations: 4.375 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.025e-05/0.6446, allocations: 12.28 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.6447, allocations: 57.92 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.6447, allocations: 3.938 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.6448, allocations: 4 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.6448, allocations: 4 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.424e-05/0.6448, allocations: 19.98 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.645, allocations: 181.6 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.6452, allocations: 58.56 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.914e-05/0.6452, allocations: 24.8 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004978/0.6457, allocations: 0.5583 MB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.6458, allocations: 42.5 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.6458, allocations: 0 / 1.021 GB, free: 14.76 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.02031/0.6661, allocations: 4.366 MB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.6661, allocations: 55.41 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.602e-05/0.6662, allocations: 97.86 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.869e-05/0.6663, allocations: 25.7 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.6663, allocations: 80.14 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.6664, allocations: 59.11 kB / 1.025 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.6667, allocations: 97.66 kB / 1.026 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.6668, allocations: 314.8 kB / 1.026 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005229/0.6673, allocations: 315.9 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005217/0.6679, allocations: 307.9 kB / 1.026 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.6694, allocations: 0.7719 MB / 1.027 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6694, allocations: 8.062 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00159/0.671, allocations: 0.8004 MB / 1.028 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.6711, allocations: 4 kB / 1.028 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.6711, allocations: 0 / 1.028 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.6711, allocations: 0 / 1.028 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000758/0.6719, allocations: 99.94 kB / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.6719, allocations: 0 / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004713/0.6724, allocations: 4 kB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.878e-05/0.6725, allocations: 35.98 kB / 1.028 GB, free: 7.137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001945/0.6727, allocations: 126.2 kB / 1.028 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.843e-05/0.6727, allocations: 11.89 kB / 1.028 GB, free: 6.992 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00336/0.6761, allocations: 1.391 MB / 1.03 GB, free: 5.598 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.6761, allocations: 4 kB / 1.03 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6761, allocations: 3.938 kB / 1.03 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.6762, allocations: 0 / 1.03 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.6791, allocations: 1.817 MB / 1.031 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.6791, allocations: 3.984 kB / 1.031 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007348/0.6799, allocations: 115.9 kB / 1.032 GB, free: 3.594 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.6799, allocations: 0 / 1.032 GB, free: 3.594 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.527e-05/0.68, allocations: 27.94 kB / 1.032 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.68, allocations: 4 kB / 1.032 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.68, allocations: 0 / 1.032 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.6825, allocations: 1.461 MB / 1.033 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.6826, allocations: 92.95 kB / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.6827, allocations: 15.94 kB / 1.033 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000475/0.6832, allocations: 19.94 kB / 1.033 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.6833, allocations: 43.95 kB / 1.033 GB, free: 1.895 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.407e-05/0.6834, allocations: 32 kB / 1.033 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.185e-05/0.6835, allocations: 75.28 kB / 1.033 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6835, allocations: 0 / 1.033 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005838/0.684, allocations: 180 kB / 1.033 GB, free: 1.613 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005368/0.6846, allocations: 232.5 kB / 1.034 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001247/0.6858, allocations: 0.7268 MB / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.6859, allocations: 0 / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.6865, allocations: 451.8 kB / 1.035 GB, free: 216 kB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.6868, allocations: 19.94 kB / 1.035 GB, free: 196 kB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.6899, allocations: 0.8819 MB / 1.036 GB, free: 15.27 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.6902, allocations: 0.7145 MB / 1.036 GB, free: 14.53 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005896/0.6908, allocations: 99.39 kB / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of SimCode: time 2.795e-06/0.6908, allocations: 0 / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of Templates: time 0.01159/0.7024, allocations: 6.876 MB / 1.043 GB, free: 7.621 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)