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.001229/0.001229, allocations: 110.7 kB / 16.41 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.001586/0.001586, allocations: 185.6 kB / 17.34 MB, free: 5.746 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002116/0.002115, allocations: 293.2 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8993/0.8993, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 99.84 kB / 0.6822 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.4499, allocations: 86.97 MB / 0.7671 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.00154/0.4515, allocations: 0.5785 MB / 0.7677 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.453, allocations: 1.248 MB / 0.7689 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.643e-05/0.453, allocations: 0 / 0.7689 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.314e-05/0.453, allocations: 0 / 0.7689 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.453, allocations: 0 / 0.7689 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.4534, allocations: 63.75 kB / 0.7689 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.193e-05/0.4534, allocations: 7.984 kB / 0.7689 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.151e-05/0.4535, allocations: 3.984 kB / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.38e-05/0.4535, allocations: 0 / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.731e-05/0.4535, allocations: 4 kB / 0.7689 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.859e-06/0.4535, allocations: 0 / 0.7689 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.4538, allocations: 107.8 kB / 0.7691 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.265e-06/0.4538, allocations: 0 / 0.7691 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.273e-05/0.4538, allocations: 4 kB / 0.7691 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.4539, allocations: 47.94 kB / 0.7691 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.454, allocations: 3.938 kB / 0.7691 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.946e-06/0.454, allocations: 3.984 kB / 0.7691 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.454, allocations: 0 / 0.7691 GB, free: 1.84 MB / 0.5294 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.0002858/0.4543, allocations: 327.6 kB / 0.7694 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.4543, allocations: 8.031 kB / 0.7694 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.4543, allocations: 4.938 kB / 0.7694 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.001e-05/0.4544, allocations: 164.4 kB / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.4544, allocations: 384 / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.4544, allocations: 8.375 kB / 0.7696 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.177e-05/0.4545, allocations: 30.02 kB / 0.7696 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.4545, allocations: 3.938 kB / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.4546, allocations: 0 / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.4546, allocations: 0 / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.147e-05/0.4546, allocations: 8 kB / 0.7696 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001243/0.4547, allocations: 151.5 kB / 0.7698 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.686e-05/0.4548, allocations: 14.58 kB / 0.7698 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.494e-05/0.4548, allocations: 12.95 kB / 0.7698 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005112/0.4553, allocations: 0.5622 MB / 0.7704 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.4553, allocations: 38.5 kB / 0.7704 GB, free: 240 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4553, allocations: 0 / 0.7704 GB, free: 240 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001279/0.4555, allocations: 41.64 kB / 0.7704 GB, free: 192 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.4555, allocations: 51.41 kB / 0.7705 GB, free: 128 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.174e-05/0.4555, allocations: 89.86 kB / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.4556, allocations: 25.7 kB / 0.7706 GB, free: 16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.548e-05/0.4556, allocations: 80.14 kB / 0.7707 GB, free: 15.91 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.4556, allocations: 7.562 kB / 0.7707 GB, free: 15.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/0.4557, allocations: 13.84 kB / 0.7707 GB, free: 15.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.4558, allocations: 318.8 kB / 0.771 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.4558, allocations: 0 / 0.771 GB, free: 15.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.702e-06/0.4558, allocations: 4 kB / 0.771 GB, free: 15.57 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.673e-05/0.4558, allocations: 12.8 kB / 0.771 GB, free: 15.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4558, allocations: 0 / 0.771 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.862e-05/0.4559, allocations: 33.7 kB / 0.771 GB, free: 15.51 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.4559, allocations: 7.938 kB / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.4559, allocations: 8.031 kB / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.4559, allocations: 0 / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.204e-05/0.456, allocations: 7.984 kB / 0.7711 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.456, allocations: 0 / 0.7711 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.016e-05/0.456, allocations: 0 / 0.7711 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-06/0.456, allocations: 0 / 0.7711 GB, free: 15.49 MB / 0.545 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.023e-05/0.4561, allocations: 108.2 kB / 0.7712 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-06/0.4561, allocations: 3.938 kB / 0.7712 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.448e-05/0.4562, allocations: 56.73 kB / 0.7712 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.4562, allocations: 0 / 0.7712 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4562, allocations: 0 / 0.7712 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.4562, allocations: 0 / 0.7712 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.266e-05/0.4563, allocations: 141.7 kB / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.4563, allocations: 4 kB / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.315e-05/0.4563, allocations: 0 / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4563, allocations: 3.938 kB / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-06/0.4563, allocations: 0 / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4563, allocations: 0 / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4563, allocations: 8.031 kB / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.46e-05/0.4564, allocations: 61.06 kB / 0.7714 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.864e-05/0.4564, allocations: 77.11 kB / 0.7715 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.868e-06/0.4565, allocations: 3.938 kB / 0.7715 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.678e-06/0.4565, allocations: 4 kB / 0.7715 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.313e-05/0.4565, allocations: 0 / 0.7715 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.4565, allocations: 7.984 kB / 0.7715 GB, free: 14.92 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.231e-05/0.4565, allocations: 83.25 kB / 0.7716 GB, free: 14.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4565, allocations: 0 / 0.7716 GB, free: 14.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001753/0.4567, allocations: 4 kB / 0.7716 GB, free: 14.84 MB / 0.545 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.0001497/0.4569, allocations: 110.2 kB / 0.7717 GB, free: 14.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.518e-05/0.4569, allocations: 4 kB / 0.7717 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4569, allocations: 0 / 0.7717 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.845e-06/0.457, allocations: 4 kB / 0.7717 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.4571, allocations: 4.109 kB / 0.7717 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001719/0.4573, allocations: 106.7 kB / 0.7718 GB, free: 14.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.4575, allocations: 0.669 MB / 0.7725 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.369e-05/0.4575, allocations: 15.38 kB / 0.7725 GB, free: 13.86 MB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.4575, allocations: 0 / 0.7725 GB, free: 13.86 MB / 0.545 GB Notification: Performance of Templates: time 0.001652/0.4592, allocations: 438.5 kB / 0.7729 GB, free: 13.43 MB / 0.545 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)