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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001421/0.001421, allocations: 103.8 kB / 16.41 MB, free: 6.016 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.001556/0.001556, allocations: 192.3 kB / 17.34 MB, free: 5.609 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.4/2.4, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 67.89 kB / 1.019 GB, free: 9.34 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8011/0.8025, allocations: 151.6 MB / 1.167 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001761/0.8043, allocations: 0.6046 MB / 1.168 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.806, allocations: 1.285 MB / 1.169 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.8061, allocations: 0 / 1.169 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.8061, allocations: 0 / 1.169 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.128e-05/0.8061, allocations: 0 / 1.169 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.8066, allocations: 85.16 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.963e-05/0.8067, allocations: 23.92 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.416e-05/0.8067, allocations: 4 kB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.501e-05/0.8068, allocations: 12 kB / 1.169 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.348e-05/0.8068, allocations: 19.91 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.8069, allocations: 0 / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.8071, allocations: 103.9 kB / 1.169 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.659e-05/0.8071, allocations: 11.94 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.8072, allocations: 7.922 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.8073, allocations: 67.86 kB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8073, allocations: 0 / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.835e-06/0.8073, allocations: 4 kB / 1.17 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.8073, allocations: 0 / 1.17 GB, free: 1.551 MB / 0.8887 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.0004622/0.8078, allocations: 347.6 kB / 1.17 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.8079, allocations: 8.031 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/0.8079, allocations: 4.844 kB / 1.17 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.808, allocations: 172.1 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.8081, allocations: 8.359 kB / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.8081, allocations: 4.375 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.8082, allocations: 57.98 kB / 1.17 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.8082, allocations: 7.938 kB / 1.17 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.8083, allocations: 0 / 1.17 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.8083, allocations: 3.984 kB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.676e-05/0.8083, allocations: 23.98 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.8085, allocations: 165.7 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.8087, allocations: 58.5 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.127e-05/0.8087, allocations: 24.86 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005306/0.8093, allocations: 0.5622 MB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.8093, allocations: 34.5 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.8093, allocations: 0 / 1.171 GB, free: 15.8 MB / 0.9044 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.02094/0.8303, allocations: 4.374 MB / 1.175 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.8303, allocations: 55.41 kB / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.555e-05/0.8304, allocations: 89.86 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/0.8305, allocations: 29.7 kB / 1.175 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.095e-05/0.8305, allocations: 80.14 kB / 1.175 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.8307, allocations: 59.19 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.8309, allocations: 101.7 kB / 1.176 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.831, allocations: 322.7 kB / 1.176 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005346/0.8316, allocations: 311.9 kB / 1.176 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.8321, allocations: 314.3 kB / 1.177 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.8337, allocations: 0.7702 MB / 1.177 GB, free: 9.117 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.8337, allocations: 0 / 1.177 GB, free: 9.117 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001648/0.8353, allocations: 0.8007 MB / 1.178 GB, free: 8.312 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.8354, allocations: 4 kB / 1.178 GB, free: 8.309 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.8354, allocations: 0 / 1.178 GB, free: 8.309 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.8354, allocations: 4 kB / 1.178 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008228/0.8362, allocations: 99.88 kB / 1.178 GB, free: 8.207 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.8362, allocations: 0 / 1.178 GB, free: 8.207 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/0.8367, allocations: 12 kB / 1.178 GB, free: 8.195 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.8368, allocations: 31.98 kB / 1.178 GB, free: 8.164 MB / 0.9044 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.0002024/0.837, allocations: 121.8 kB / 1.178 GB, free: 8.035 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.613e-05/0.8371, allocations: 4 kB / 1.178 GB, free: 8.031 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003103/0.8402, allocations: 1.399 MB / 1.18 GB, free: 6.617 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.8402, allocations: 4 kB / 1.18 GB, free: 6.613 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.8403, allocations: 0 / 1.18 GB, free: 6.613 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.8403, allocations: 0 / 1.18 GB, free: 6.613 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002989/0.8433, allocations: 1.814 MB / 1.181 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.8433, allocations: 4.031 kB / 1.181 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007872/0.8441, allocations: 111.9 kB / 1.182 GB, free: 4.629 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.8441, allocations: 4 kB / 1.182 GB, free: 4.625 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.095e-05/0.8442, allocations: 27.94 kB / 1.182 GB, free: 4.598 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.8442, allocations: 4 kB / 1.182 GB, free: 4.594 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.8442, allocations: 0 / 1.182 GB, free: 4.594 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.8466, allocations: 1.466 MB / 1.183 GB, free: 3.105 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.16e-05/0.8467, allocations: 92.92 kB / 1.183 GB, free: 2.996 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.395e-05/0.8467, allocations: 15.94 kB / 1.183 GB, free: 2.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.8472, allocations: 12 kB / 1.183 GB, free: 2.969 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.8474, allocations: 47.94 kB / 1.183 GB, free: 2.922 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.532e-05/0.8475, allocations: 28 kB / 1.183 GB, free: 2.895 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.544e-05/0.8475, allocations: 75.28 kB / 1.183 GB, free: 2.82 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8475, allocations: 0 / 1.183 GB, free: 2.82 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006196/0.8481, allocations: 176 kB / 1.183 GB, free: 2.648 MB / 0.9044 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.0005501/0.8487, allocations: 227.9 kB / 1.184 GB, free: 2.418 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001273/0.85, allocations: 0.73 MB / 1.184 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.85, allocations: 0 / 1.184 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006572/0.8507, allocations: 455.7 kB / 1.185 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.851, allocations: 12 kB / 1.185 GB, free: 1.23 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.8541, allocations: 0.8293 MB / 1.186 GB, free: 368 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.8544, allocations: 0.7181 MB / 1.186 GB, free: 15.62 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005398/0.855, allocations: 99.39 kB / 1.186 GB, free: 15.52 MB / 0.92 GB Notification: Performance of SimCode: time 1.994e-06/0.855, allocations: 0 / 1.186 GB, free: 15.52 MB / 0.92 GB Notification: Performance of Templates: time 0.01073/0.8657, allocations: 6.903 MB / 1.193 GB, free: 8.684 MB / 0.92 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)