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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.59/1.59, allocations: 292.3 MB / 308.1 MB, free: 4.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 178.4 kB / 376.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205 MB / 0.6353 GB, free: 9.816 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000876/0.0008757, allocations: 101.5 kB / 0.748 GB, free: 61.04 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 51.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2347, allocations: 114.5 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001835/0.2366, allocations: 0.6573 MB / 0.9829 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2382, allocations: 1.292 MB / 0.9841 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.004e-05/0.2383, allocations: 4 kB / 0.9841 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.679e-05/0.2383, allocations: 0 / 0.9841 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.2383, allocations: 0 / 0.9841 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.2386, allocations: 47.83 kB / 0.9842 GB, free: 8.367 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 3.709e-05/0.2387, allocations: 4 kB / 0.9842 GB, free: 8.363 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.2387, allocations: 0 / 0.9842 GB, free: 8.363 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 1.297e-05/0.2387, allocations: 0 / 0.9842 GB, free: 8.363 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 4.397e-05/0.2388, allocations: 4 kB / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 7.885e-06/0.2388, allocations: 0 / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002051/0.239, allocations: 91.89 kB / 0.9843 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.239, allocations: 0 / 0.9843 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.687e-05/0.2391, allocations: 3.938 kB / 0.9843 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.2392, allocations: 55.94 kB / 0.9843 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2392, allocations: 0 / 0.9843 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.32e-07/0.2392, allocations: 0 / 0.9843 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.246e-06/0.2392, allocations: 0 / 0.9843 GB, free: 8.211 MB / 0.7136 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.0003025/0.2395, allocations: 327.6 kB / 0.9846 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2396, allocations: 8.031 kB / 0.9847 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.2396, allocations: 0.9375 kB / 0.9847 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.569e-05/0.2397, allocations: 160.4 kB / 0.9848 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.2397, allocations: 384 / 0.9848 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.2397, allocations: 384 / 0.9848 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.844e-05/0.2398, allocations: 45.94 kB / 0.9849 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.2398, allocations: 0 / 0.9849 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.2398, allocations: 0 / 0.9849 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2399, allocations: 0 / 0.9849 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.937e-05/0.2399, allocations: 4 kB / 0.9849 GB, free: 7.586 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.24, allocations: 145.7 kB / 0.985 GB, free: 7.395 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 3.38e-05/0.2401, allocations: 14.58 kB / 0.985 GB, free: 7.371 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.2401, allocations: 12.95 kB / 0.985 GB, free: 7.355 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005195/0.2406, allocations: 0.5661 MB / 0.9856 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.2406, allocations: 34.5 kB / 0.9856 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.2407, allocations: 0 / 0.9856 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1): time 0.00012/0.2408, allocations: 29.7 kB / 0.9856 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.2408, allocations: 51.53 kB / 0.9857 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.047e-05/0.2409, allocations: 97.86 kB / 0.9858 GB, free: 6.414 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.2409, allocations: 25.7 kB / 0.9858 GB, free: 6.383 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.432e-05/0.2409, allocations: 84.08 kB / 0.9859 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.2409, allocations: 3.906 kB / 0.9859 GB, free: 6.293 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.241, allocations: 17.7 kB / 0.9859 GB, free: 6.27 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2411, allocations: 314.8 kB / 0.9862 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-06/0.2411, allocations: 3.938 kB / 0.9862 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-06/0.2411, allocations: 7.938 kB / 0.9862 GB, free: 5.941 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.466e-05/0.2411, allocations: 12.92 kB / 0.9862 GB, free: 5.926 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2411, allocations: 0 / 0.9862 GB, free: 5.926 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.146e-05/0.2412, allocations: 29.7 kB / 0.9863 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2412, allocations: 14.59 kB / 0.9863 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2412, allocations: 0 / 0.9863 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.2413, allocations: 3.984 kB / 0.9863 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.864e-05/0.2413, allocations: 0 / 0.9863 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.2413, allocations: 0 / 0.9863 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.333e-05/0.2413, allocations: 4 kB / 0.9863 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-06/0.2413, allocations: 8.031 kB / 0.9863 GB, free: 5.863 MB / 0.7136 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 9.863e-05/0.2414, allocations: 105.8 kB / 0.9864 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.2415, allocations: 3.938 kB / 0.9864 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.358e-05/0.2415, allocations: 40.75 kB / 0.9864 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.2416, allocations: 4 kB / 0.9864 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.2416, allocations: 0 / 0.9864 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.2416, allocations: 4.031 kB / 0.9864 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.409e-05/0.2417, allocations: 150 kB / 0.9866 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2417, allocations: 0 / 0.9866 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.731e-05/0.2417, allocations: 4 kB / 0.9866 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.2417, allocations: 3.938 kB / 0.9866 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.2417, allocations: 3.984 kB / 0.9866 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2417, allocations: 0 / 0.9866 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2417, allocations: 0 / 0.9866 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002846/0.242, allocations: 0.6045 MB / 0.9872 GB, free: 4.824 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.2421, allocations: 77.11 kB / 0.9873 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-06/0.2421, allocations: 0 / 0.9873 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.358e-06/0.2421, allocations: 0 / 0.9873 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.015e-05/0.2421, allocations: 0 / 0.9873 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.2421, allocations: 4 kB / 0.9873 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.404e-05/0.2421, allocations: 79.22 kB / 0.9873 GB, free: 4.648 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9.1e-08/0.2421, allocations: 3.938 kB / 0.9873 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002895/0.2424, allocations: 8.031 kB / 0.9873 GB, free: 4.637 MB / 0.7136 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.0001609/0.2426, allocations: 119.2 kB / 0.9875 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.132e-05/0.2427, allocations: 7.938 kB / 0.9875 GB, free: 4.5 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2427, allocations: 4 kB / 0.9875 GB, free: 4.496 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.352e-06/0.2427, allocations: 0 / 0.9875 GB, free: 4.496 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001175/0.2428, allocations: 4 kB / 0.9875 GB, free: 4.492 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002584/0.2431, allocations: 177.8 kB / 0.9876 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.2435, allocations: 0.6808 MB / 0.9883 GB, free: 3.574 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.441e-05/0.2435, allocations: 3.938 kB / 0.9883 GB, free: 3.57 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.778e-05/0.2435, allocations: 7.438 kB / 0.9883 GB, free: 3.562 MB / 0.7136 GB Notification: Performance of SimCode: time 2.01e-07/0.2435, allocations: 0 / 0.9883 GB, free: 3.562 MB / 0.7136 GB Notification: Performance of Templates: time 0.002272/0.2458, allocations: 304.6 kB / 0.9886 GB, free: 3.266 MB / 0.7136 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)