Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.004625/0.004625, allocations: 108.9 kB / 15.74 MB, free: 6.441 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.001065/0.001065, allocations: 191.7 kB / 16.67 MB, free: 6.355 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002098/0.002098, allocations: 278.5 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.016/1.016, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001679, allocations: 100.3 kB / 0.6815 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1479, allocations: 86.97 MB / 0.7664 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001395/0.1493, allocations: 0.5721 MB / 0.767 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.1507, allocations: 1.248 MB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.387e-05/0.1507, allocations: 0 / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.1507, allocations: 4 kB / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.16e-06/0.1507, allocations: 0 / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.151, allocations: 71.73 kB / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.512e-05/0.1511, allocations: 0 / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.178e-05/0.1511, allocations: 0 / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.309e-05/0.1511, allocations: 8 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.246e-05/0.1512, allocations: 0 / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.422e-06/0.1512, allocations: 0 / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.1514, allocations: 99.83 kB / 0.7684 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.1514, allocations: 7.984 kB / 0.7684 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.278e-05/0.1514, allocations: 3.938 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.1516, allocations: 51.94 kB / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1516, allocations: 0 / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1516, allocations: 0 / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.1516, allocations: 0 / 0.7684 GB, free: 6.312 MB / 0.5606 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.0002566/0.1518, allocations: 327.6 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.1519, allocations: 11.97 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.493e-05/0.1519, allocations: 4.938 kB / 0.7688 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.866e-05/0.152, allocations: 160.4 kB / 0.7689 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.152, allocations: 4.375 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-06/0.152, allocations: 384 / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.634e-05/0.1521, allocations: 30.02 kB / 0.769 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1521, allocations: 0 / 0.769 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.1521, allocations: 0 / 0.769 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.1521, allocations: 0 / 0.769 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.054e-05/0.1521, allocations: 19.92 kB / 0.769 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.1523, allocations: 141.7 kB / 0.7691 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.098e-05/0.1523, allocations: 18.61 kB / 0.7691 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.28e-05/0.1523, allocations: 4.859 kB / 0.7691 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004711/0.1528, allocations: 0.5662 MB / 0.7697 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1528, allocations: 38.5 kB / 0.7697 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1528, allocations: 0 / 0.7697 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001041/0.1529, allocations: 33.64 kB / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.153, allocations: 51.41 kB / 0.7698 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.394e-05/0.153, allocations: 93.86 kB / 0.7699 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.153, allocations: 33.62 kB / 0.7699 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.153e-05/0.1531, allocations: 80.14 kB / 0.77 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.1531, allocations: 11.97 kB / 0.77 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.1531, allocations: 13.72 kB / 0.77 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.1532, allocations: 310.8 kB / 0.7703 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.805e-06/0.1532, allocations: 0 / 0.7703 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.792e-06/0.1532, allocations: 4 kB / 0.7703 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.261e-05/0.1533, allocations: 8.859 kB / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1533, allocations: 0 / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.837e-05/0.1533, allocations: 45.69 kB / 0.7704 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.1533, allocations: 7.938 kB / 0.7704 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.1533, allocations: 0 / 0.7704 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.1533, allocations: 0 / 0.7704 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.612e-05/0.1534, allocations: 4 kB / 0.7704 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1534, allocations: 3.984 kB / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.033e-05/0.1534, allocations: 0 / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.1534, allocations: 0 / 0.7704 GB, free: 3.961 MB / 0.5606 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 5.383e-05/0.1535, allocations: 110.5 kB / 0.7705 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-06/0.1535, allocations: 3.969 kB / 0.7705 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.7e-05/0.1536, allocations: 48.75 kB / 0.7706 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1536, allocations: 0 / 0.7706 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1536, allocations: 0 / 0.7706 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.1536, allocations: 0 / 0.7706 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.68e-05/0.1537, allocations: 149.6 kB / 0.7707 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1537, allocations: 0 / 0.7707 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.533e-05/0.1537, allocations: 3.984 kB / 0.7707 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1537, allocations: 3.938 kB / 0.7707 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.1537, allocations: 8.031 kB / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1537, allocations: 0 / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1537, allocations: 4 kB / 0.7707 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.469e-05/0.1538, allocations: 53.14 kB / 0.7708 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.1538, allocations: 77.11 kB / 0.7708 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.839e-06/0.1538, allocations: 11.92 kB / 0.7709 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.1539, allocations: 0 / 0.7709 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.154e-05/0.1539, allocations: 11.95 kB / 0.7709 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.1539, allocations: 0 / 0.7709 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.432e-05/0.1539, allocations: 79.73 kB / 0.7709 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1539, allocations: 0 / 0.7709 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001803/0.1541, allocations: 12 kB / 0.771 GB, free: 3.297 MB / 0.5606 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.0001182/0.1542, allocations: 99.25 kB / 0.771 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 5.46e-05/0.1543, allocations: 7.984 kB / 0.7711 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1543, allocations: 0 / 0.7711 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.875e-06/0.1543, allocations: 12.06 kB / 0.7711 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001147/0.1544, allocations: 0 / 0.7711 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001393/0.1546, allocations: 77.08 kB / 0.7711 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.1548, allocations: 0.6728 MB / 0.7718 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.827e-05/0.1548, allocations: 3.984 kB / 0.7718 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.488e-05/0.1548, allocations: 15.38 kB / 0.7718 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.1548, allocations: 64 / 0.7718 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of Templates: time 0.00186/0.1567, allocations: 304.5 kB / 0.7721 GB, free: 2.051 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)