Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 112.8 kB / 16.37 MB, free: 6.012 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.001142/0.001142, allocations: 189 kB / 17.31 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 223.2 MB, free: 12.14 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.761/1.761, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 68.12 kB / 0.6729 GB, free: 5.891 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2816, allocations: 114.6 MB / 0.7848 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001968/0.2837, allocations: 0.5851 MB / 0.7854 GB, free: 2.621 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.2853, allocations: 1.276 MB / 0.7866 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.042e-05/0.2853, allocations: 0 / 0.7866 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.772e-05/0.2854, allocations: 0 / 0.7866 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.2854, allocations: 0 / 0.7866 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.2858, allocations: 67.75 kB / 0.7867 GB, free: 1.262 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 5.995e-05/0.2859, allocations: 7.984 kB / 0.7867 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.051e-05/0.2859, allocations: 4 kB / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.649e-05/0.2859, allocations: 0 / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 4.298e-05/0.286, allocations: 0 / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 8.005e-06/0.286, allocations: 0 / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.2862, allocations: 95.89 kB / 0.7868 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.245e-05/0.2863, allocations: 3.938 kB / 0.7868 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 1.801e-05/0.2863, allocations: 0 / 0.7868 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.2864, allocations: 55.88 kB / 0.7869 GB, free: 1.098 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.2865, allocations: 0 / 0.7869 GB, free: 1.098 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.717e-06/0.2865, allocations: 0 / 0.7869 GB, free: 1.098 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.2865, allocations: 0 / 0.7869 GB, free: 1.098 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000484/0.287, allocations: 327.6 kB / 0.7872 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.287, allocations: 12.03 kB / 0.7872 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.2871, allocations: 0.9375 kB / 0.7872 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.2872, allocations: 164.4 kB / 0.7873 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.2873, allocations: 384 / 0.7873 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.2873, allocations: 384 / 0.7873 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.2874, allocations: 34.02 kB / 0.7874 GB, free: 492 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.2874, allocations: 0 / 0.7874 GB, free: 492 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.2875, allocations: 4 kB / 0.7874 GB, free: 488 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2875, allocations: 3.938 kB / 0.7874 GB, free: 484 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.978e-05/0.2875, allocations: 3.938 kB / 0.7874 GB, free: 480 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.2877, allocations: 149.7 kB / 0.7875 GB, free: 280 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 4.105e-05/0.2877, allocations: 18.56 kB / 0.7875 GB, free: 252 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.898e-05/0.2878, allocations: 8.953 kB / 0.7875 GB, free: 240 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4863/0.774, allocations: 0.5501 MB / 0.7881 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.621e-05/0.7742, allocations: 39.91 kB / 0.7881 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=1): time 4.789e-06/0.7742, allocations: 0 / 0.7881 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1): time 0.0002799/0.7745, allocations: 39.14 kB / 0.7882 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.7745, allocations: 52.67 kB / 0.7882 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.779e-05/0.7746, allocations: 90.48 kB / 0.7883 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.7746, allocations: 27.61 kB / 0.7883 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.33e-05/0.7746, allocations: 80.77 kB / 0.7884 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.7747, allocations: 0 / 0.7884 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.7748, allocations: 14.61 kB / 0.7884 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.7749, allocations: 316.1 kB / 0.7887 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.875e-05/0.7749, allocations: 0.5 kB / 0.7887 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.344e-05/0.7749, allocations: 3.969 kB / 0.7887 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.319e-05/0.775, allocations: 13.89 kB / 0.7887 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.775, allocations: 0 / 0.7887 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.291e-05/0.7751, allocations: 34.61 kB / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.7751, allocations: 11.52 kB / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.7751, allocations: 0 / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.7752, allocations: 0 / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.86e-05/0.7752, allocations: 4.062 kB / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.7753, allocations: 0.6094 kB / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.001e-05/0.7753, allocations: 4.75 kB / 0.7888 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.7753, allocations: 0 / 0.7888 GB, free: 47.68 MB / 0.6544 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 (1): * Single equations (assignments): 1 * 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.0001204/0.7754, allocations: 116.6 kB / 0.7889 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.039e-05/0.7754, allocations: 3.938 kB / 0.7889 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.7756, allocations: 37.86 kB / 0.7889 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.7756, allocations: 0.8125 kB / 0.7889 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.7756, allocations: 3.219 kB / 0.7889 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.7757, allocations: 3.375 kB / 0.7889 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.7758, allocations: 150.2 kB / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.7758, allocations: 2.875 kB / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.311e-05/0.7758, allocations: 0 / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.7758, allocations: 0 / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.7759, allocations: 4.875 kB / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.7759, allocations: 0 / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7759, allocations: 0 / 0.7891 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.055e-05/0.776, allocations: 66.91 kB / 0.7892 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.227e-05/0.776, allocations: 77.77 kB / 0.7892 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.7761, allocations: 3.625 kB / 0.7892 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.7761, allocations: 0 / 0.7892 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.7761, allocations: 0.5312 kB / 0.7892 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.7761, allocations: 4 kB / 0.7892 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.461e-05/0.7762, allocations: 76.78 kB / 0.7893 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.7762, allocations: 0 / 0.7893 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002667/0.7764, allocations: 6.531 kB / 0.7893 GB, free: 47.11 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 1 * 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.0002442/0.7767, allocations: 118.7 kB / 0.7894 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001019/0.7768, allocations: 4.531 kB / 0.7894 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/0.7768, allocations: 2.688 kB / 0.7894 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.686e-06/0.7768, allocations: 0.5 kB / 0.7894 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.777, allocations: 12.12 kB / 0.7895 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.7774, allocations: 99.64 kB / 0.7895 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.7777, allocations: 0.6762 MB / 0.7902 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.388e-05/0.7777, allocations: 7.438 kB / 0.7902 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.7777, allocations: 0.625 kB / 0.7902 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of Templates: time 0.003176/0.7809, allocations: 433.4 kB / 0.7906 GB, free: 46.2 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)