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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001513/0.001513, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00154/0.00154, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.235/2.235, allocations: 390.3 MB / 0.6653 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.55 kB / 0.8132 GB, free: 33.1 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.28, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001919/0.282, allocations: 0.6136 MB / 0.9509 GB, free: 8.266 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2837, allocations: 1.285 MB / 0.9521 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.269e-05/0.2838, allocations: 0 / 0.9521 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.2838, allocations: 0 / 0.9521 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.853e-05/0.2839, allocations: 3.938 kB / 0.9521 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.2843, allocations: 79.73 kB / 0.9522 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.199e-05/0.2844, allocations: 27.91 kB / 0.9522 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.2844, allocations: 0 / 0.9522 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.52e-05/0.2845, allocations: 12 kB / 0.9523 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.478e-05/0.2845, allocations: 11.92 kB / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.2846, allocations: 0 / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.2848, allocations: 103.9 kB / 0.9524 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.603e-05/0.2848, allocations: 4 kB / 0.9524 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.19e-05/0.2849, allocations: 15.92 kB / 0.9524 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.285, allocations: 67.84 kB / 0.9524 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.285, allocations: 0 / 0.9524 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.253e-06/0.285, allocations: 4 kB / 0.9524 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2851, allocations: 0 / 0.9524 GB, free: 6.641 MB / 0.7325 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.0004424/0.2855, allocations: 351.8 kB / 0.9528 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2855, allocations: 8.031 kB / 0.9528 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.459e-05/0.2856, allocations: 4.875 kB / 0.9528 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.2857, allocations: 168.3 kB / 0.953 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.2857, allocations: 4.375 kB / 0.953 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.2857, allocations: 12.28 kB / 0.953 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.2859, allocations: 53.98 kB / 0.953 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.2859, allocations: 3.938 kB / 0.953 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.2859, allocations: 4 kB / 0.953 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2859, allocations: 0 / 0.953 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.997e-05/0.286, allocations: 23.98 kB / 0.9531 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001969/0.2862, allocations: 173.5 kB / 0.9532 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.2863, allocations: 58.56 kB / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.282e-05/0.2864, allocations: 24.84 kB / 0.9533 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005114/0.2869, allocations: 0.5586 MB / 0.9538 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.2869, allocations: 38.48 kB / 0.9539 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2869, allocations: 0 / 0.9539 GB, free: 4.883 MB / 0.7325 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.02133/0.3083, allocations: 4.373 MB / 0.9582 GB, free: 360 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.3084, allocations: 51.41 kB / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.447e-05/0.3084, allocations: 101.9 kB / 0.9583 GB, free: 184 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.07e-05/0.3085, allocations: 25.7 kB / 0.9583 GB, free: 152 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.522e-05/0.3086, allocations: 80.14 kB / 0.9584 GB, free: 68 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.3088, allocations: 67.03 kB / 0.9585 GB, free: 0 / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/0.309, allocations: 93.75 kB / 0.9586 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3092, allocations: 322.7 kB / 0.9589 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005432/0.3097, allocations: 311.9 kB / 0.9592 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005461/0.3103, allocations: 306.5 kB / 0.9595 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.3119, allocations: 0.7779 MB / 0.9602 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3119, allocations: 4.125 kB / 0.9602 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001604/0.3135, allocations: 0.7967 MB / 0.961 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3136, allocations: 4 kB / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3136, allocations: 0 / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3136, allocations: 3.938 kB / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008849/0.3145, allocations: 95.88 kB / 0.9611 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.3145, allocations: 8 kB / 0.9611 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005629/0.3151, allocations: 4 kB / 0.9611 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.017e-05/0.3152, allocations: 35.98 kB / 0.9611 GB, free: 13.24 MB / 0.7481 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.0002079/0.3154, allocations: 123.8 kB / 0.9613 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-05/0.3155, allocations: 11.89 kB / 0.9613 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003566/0.3191, allocations: 1.407 MB / 0.9626 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3191, allocations: 4 kB / 0.9626 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.3191, allocations: 0 / 0.9626 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3191, allocations: 0 / 0.9626 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.3223, allocations: 1.813 MB / 0.9644 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3223, allocations: 0 / 0.9644 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008438/0.3232, allocations: 107.9 kB / 0.9645 GB, free: 9.707 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.3232, allocations: 4 kB / 0.9645 GB, free: 9.703 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.397e-05/0.3233, allocations: 27.94 kB / 0.9645 GB, free: 9.676 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-06/0.3233, allocations: 4 kB / 0.9646 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3233, allocations: 0 / 0.9646 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.3258, allocations: 1.477 MB / 0.966 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.3258, allocations: 92.89 kB / 0.9661 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.949e-05/0.3259, allocations: 16 kB / 0.9661 GB, free: 8.051 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.3265, allocations: 12 kB / 0.9661 GB, free: 8.039 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.3267, allocations: 43.95 kB / 0.9662 GB, free: 7.996 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.111e-05/0.3268, allocations: 32 kB / 0.9662 GB, free: 7.965 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.725e-05/0.3268, allocations: 75.28 kB / 0.9663 GB, free: 7.891 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3268, allocations: 0 / 0.9663 GB, free: 7.891 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006045/0.3274, allocations: 184 kB / 0.9664 GB, free: 7.711 MB / 0.7481 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.00057/0.328, allocations: 229.8 kB / 0.9666 GB, free: 7.477 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001393/0.3294, allocations: 0.7378 MB / 0.9674 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3294, allocations: 0 / 0.9674 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006935/0.3301, allocations: 447.8 kB / 0.9678 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3305, allocations: 19.98 kB / 0.9678 GB, free: 6.281 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.3341, allocations: 0.8333 MB / 0.9686 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.3344, allocations: 0.7181 MB / 0.9693 GB, free: 4.668 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005757/0.335, allocations: 91.41 kB / 0.9694 GB, free: 4.578 MB / 0.7481 GB Notification: Performance of SimCode: time 4.61e-07/0.335, allocations: 0 / 0.9694 GB, free: 4.578 MB / 0.7481 GB Notification: Performance of Templates: time 0.01227/0.3473, allocations: 6.887 MB / 0.9761 GB, free: 13.74 MB / 0.7637 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)