Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.0009032/0.0009032, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005141/0.005141, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.397/1.397, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.893/2.893, allocations: 473.4 MB / 0.7469 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004734/0.0004737, allocations: 14.12 kB / 0.9158 GB, free: 33.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3269, allocations: 162.2 MB / 1.074 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0007086/0.3277, allocations: 314.9 kB / 1.074 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001528/0.3292, allocations: 1.254 MB / 1.076 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.376e-06/0.3292, allocations: 0 / 1.076 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.126e-05/0.3292, allocations: 0 / 1.076 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.069e-06/0.3293, allocations: 0 / 1.076 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.3296, allocations: 43.89 kB / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.919e-05/0.3296, allocations: 7.984 kB / 1.076 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.3297, allocations: 0 / 1.076 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.65e-05/0.3297, allocations: 3.938 kB / 1.076 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.335e-05/0.3297, allocations: 4 kB / 1.076 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.3297, allocations: 3.938 kB / 1.076 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.33, allocations: 99.89 kB / 1.076 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.33, allocations: 0 / 1.076 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.492e-05/0.33, allocations: 25.7 kB / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.3302, allocations: 51.94 kB / 1.076 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3302, allocations: 11.92 kB / 1.076 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3302, allocations: 0 / 1.076 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.3302, allocations: 0 / 1.076 GB, free: 5.738 MB / 0.8262 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.0002711/0.3305, allocations: 323.6 kB / 1.076 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.3305, allocations: 8.031 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.393e-05/0.3306, allocations: 0.9375 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.521e-05/0.3306, allocations: 172.4 kB / 1.076 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.3307, allocations: 384 / 1.076 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-06/0.3307, allocations: 4.375 kB / 1.076 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.524e-05/0.3308, allocations: 34.02 kB / 1.076 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.3308, allocations: 0 / 1.076 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.3308, allocations: 0 / 1.076 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3308, allocations: 0 / 1.076 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.08e-05/0.3308, allocations: 8 kB / 1.076 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.331, allocations: 149.6 kB / 1.077 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.901e-05/0.331, allocations: 22.55 kB / 1.077 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.689e-05/0.331, allocations: 8.859 kB / 1.077 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005337/0.3316, allocations: 0.5662 MB / 1.077 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.3316, allocations: 34.5 kB / 1.077 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3316, allocations: 0 / 1.077 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001242/0.3317, allocations: 37.64 kB / 1.077 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.3318, allocations: 51.41 kB / 1.077 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.203e-05/0.3318, allocations: 89.86 kB / 1.077 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.3318, allocations: 29.7 kB / 1.077 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.938e-05/0.3319, allocations: 84.27 kB / 1.077 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.3319, allocations: 3.906 kB / 1.077 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.011e-05/0.3319, allocations: 9.719 kB / 1.077 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.372e-05/0.332, allocations: 310.8 kB / 1.078 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.332, allocations: 3.984 kB / 1.078 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.072e-06/0.332, allocations: 4 kB / 1.078 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.585e-05/0.3321, allocations: 8.859 kB / 1.078 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3321, allocations: 0 / 1.078 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.213e-05/0.3321, allocations: 41.7 kB / 1.078 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3322, allocations: 9.5 kB / 1.078 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3322, allocations: 0 / 1.078 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.3322, allocations: 0 / 1.078 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.396e-05/0.3322, allocations: 4 kB / 1.078 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.3322, allocations: 3.938 kB / 1.078 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.123e-05/0.3323, allocations: 0 / 1.078 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.3323, allocations: 0 / 1.078 GB, free: 3.395 MB / 0.8262 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 6.577e-05/0.3323, allocations: 113.8 kB / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-06/0.3324, allocations: 7.969 kB / 1.078 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.059e-05/0.3324, allocations: 36.83 kB / 1.078 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3325, allocations: 0 / 1.078 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3325, allocations: 0 / 1.078 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3325, allocations: 0 / 1.078 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.172e-05/0.3326, allocations: 149.7 kB / 1.078 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3326, allocations: 3.938 kB / 1.078 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.371e-05/0.3326, allocations: 0 / 1.078 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.3326, allocations: 3.938 kB / 1.078 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.3326, allocations: 11.97 kB / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3326, allocations: 0 / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3326, allocations: 0 / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.025e-05/0.3327, allocations: 57.12 kB / 1.078 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.339e-05/0.3327, allocations: 81.39 kB / 1.078 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.3328, allocations: 7.938 kB / 1.078 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-06/0.3328, allocations: 0 / 1.078 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-06/0.3328, allocations: 4.031 kB / 1.078 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-06/0.3328, allocations: 0 / 1.078 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.237e-05/0.3328, allocations: 75.28 kB / 1.078 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3328, allocations: 0 / 1.078 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000191/0.333, allocations: 11.98 kB / 1.078 GB, free: 2.738 MB / 0.8262 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.000156/0.3332, allocations: 103.2 kB / 1.078 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.062e-05/0.3333, allocations: 11.94 kB / 1.079 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3333, allocations: 0 / 1.079 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.734e-06/0.3333, allocations: 8.062 kB / 1.079 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.3334, allocations: 3.938 kB / 1.079 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.3336, allocations: 70.75 kB / 1.079 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.3338, allocations: 0.6731 MB / 1.079 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.929e-05/0.3338, allocations: 0 / 1.079 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.159e-05/0.3338, allocations: 7.438 kB / 1.079 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.3338, allocations: 4.062 kB / 1.079 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of Templates: time 0.002102/0.3359, allocations: 291 kB / 1.08 GB, free: 1.512 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)