Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001714/0.001714, 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.00226/0.00226, allocations: 200.4 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.389/2.389, allocations: 390.2 MB / 0.6649 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 71.89 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7223/0.7238, allocations: 140.3 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001833/0.7257, allocations: 0.6846 MB / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001501/0.7272, allocations: 1.287 MB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.152e-05/0.7273, allocations: 0 / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.953e-05/0.7273, allocations: 3.938 kB / 0.9515 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.821e-05/0.7274, allocations: 5.062 kB / 0.9515 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004899/0.7279, allocations: 49.77 kB / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.511e-05/0.728, allocations: 18.23 kB / 0.9516 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.909e-05/0.728, allocations: 10.2 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.486e-05/0.7281, allocations: 8.766 kB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.838e-05/0.7281, allocations: 16.89 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.7282, allocations: 1.562 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.7284, allocations: 96.92 kB / 0.9517 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.378e-05/0.7285, allocations: 9.516 kB / 0.9517 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.213e-05/0.7285, allocations: 18.5 kB / 0.9517 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.7286, allocations: 45 kB / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.7287, allocations: 0 / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7287, allocations: 0 / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.7287, allocations: 0 / 0.9518 GB, free: 7.383 MB / 0.7169 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.0004355/0.7291, allocations: 350.5 kB / 0.9521 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.7292, allocations: 8.844 kB / 0.9521 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.7292, allocations: 3.469 kB / 0.9521 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.259e-05/0.7293, allocations: 173.4 kB / 0.9523 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.7293, allocations: 5.406 kB / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.7293, allocations: 3.469 kB / 0.9523 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.7295, allocations: 53.12 kB / 0.9524 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.7295, allocations: 9.812 kB / 0.9524 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.7295, allocations: 0 / 0.9524 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.7295, allocations: 1.469 kB / 0.9524 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.671e-05/0.7296, allocations: 33.14 kB / 0.9524 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001387/0.7297, allocations: 164.9 kB / 0.9526 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.7299, allocations: 64.52 kB / 0.9526 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.086e-05/0.7299, allocations: 28.72 kB / 0.9526 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003874/0.7303, allocations: 0.5535 MB / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.7303, allocations: 35.88 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.7303, allocations: 4 kB / 0.9532 GB, free: 5.746 MB / 0.7169 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.02072/0.7511, allocations: 4.359 MB / 0.9575 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.7511, allocations: 57.5 kB / 0.9575 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.194e-05/0.7512, allocations: 99.16 kB / 0.9576 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.832e-05/0.7513, allocations: 34.8 kB / 0.9577 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.625e-05/0.7513, allocations: 80.14 kB / 0.9577 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.7514, allocations: 62.12 kB / 0.9578 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003338/0.7518, allocations: 88.17 kB / 0.9579 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.637e-05/0.7519, allocations: 324.7 kB / 0.9582 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005395/0.7524, allocations: 305.9 kB / 0.9585 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005478/0.753, allocations: 309.3 kB / 0.9588 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.7545, allocations: 0.78 MB / 0.9595 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.7545, allocations: 3.938 kB / 0.9595 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001606/0.7562, allocations: 0.7996 MB / 0.9603 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.7562, allocations: 5 kB / 0.9603 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.7562, allocations: 0 / 0.9603 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.7562, allocations: 1.438 kB / 0.9603 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007722/0.757, allocations: 92.06 kB / 0.9604 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.757, allocations: 1 kB / 0.9604 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004649/0.7575, allocations: 9.844 kB / 0.9604 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.281e-05/0.7576, allocations: 35.84 kB / 0.9605 GB, free: 1.441 MB / 0.7169 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.0001747/0.7578, allocations: 129 kB / 0.9606 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.32e-05/0.7579, allocations: 7.188 kB / 0.9606 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.7612, allocations: 1.4 MB / 0.962 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.7613, allocations: 3.594 kB / 0.962 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.7613, allocations: 1 kB / 0.962 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.7613, allocations: 3.984 kB / 0.962 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.7643, allocations: 1.813 MB / 0.9637 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.7643, allocations: 8.719 kB / 0.9637 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/0.7651, allocations: 109.2 kB / 0.9639 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.7652, allocations: 2.156 kB / 0.9639 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.572e-05/0.7652, allocations: 29.22 kB / 0.9639 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.7653, allocations: 10.2 kB / 0.9639 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7653, allocations: 0 / 0.9639 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.7679, allocations: 1.47 MB / 0.9653 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.768, allocations: 93.92 kB / 0.9654 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.7681, allocations: 18.64 kB / 0.9654 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.7686, allocations: 9.25 kB / 0.9654 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.7687, allocations: 42.31 kB / 0.9655 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.94e-05/0.7688, allocations: 26.41 kB / 0.9655 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.92e-05/0.7689, allocations: 76.81 kB / 0.9656 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7689, allocations: 0 / 0.9656 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006296/0.7695, allocations: 179.4 kB / 0.9658 GB, free: 14.11 MB / 0.7325 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.0005815/0.7701, allocations: 226.9 kB / 0.966 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00135/0.7715, allocations: 0.7265 MB / 0.9667 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.7715, allocations: 0 / 0.9667 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007113/0.7722, allocations: 450.4 kB / 0.9671 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.7725, allocations: 23.88 kB / 0.9671 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.7758, allocations: 0.8897 MB / 0.968 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.7761, allocations: 0.7173 MB / 0.9687 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005839/0.7767, allocations: 91.72 kB / 0.9688 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of SimCode: time 3.2e-07/0.7767, allocations: 4 kB / 0.9688 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of Templates: time 0.01264/0.7893, allocations: 6.88 MB / 0.9755 GB, free: 6.965 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)