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.001209/0.001209, allocations: 107.5 kB / 16.41 MB, free: 6.496 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.001212/0.001213, allocations: 187 kB / 17.34 MB, free: 5.766 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.23/1.23, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00258/0.00258, allocations: 290.4 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8865/0.8865, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 95.84 kB / 0.6822 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3872, allocations: 86.97 MB / 0.7671 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001536/0.3888, allocations: 0.5738 MB / 0.7676 GB, free: 3.34 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.3902, allocations: 1.252 MB / 0.7689 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.611e-05/0.3903, allocations: 0 / 0.7689 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.132e-05/0.3903, allocations: 0 / 0.7689 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.26e-06/0.3903, allocations: 4 kB / 0.7689 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.3907, allocations: 67.73 kB / 0.7689 GB, free: 2 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.111e-05/0.3907, allocations: 3.984 kB / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.335e-05/0.3908, allocations: 0 / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.501e-05/0.3908, allocations: 4 kB / 0.7689 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.33e-05/0.3908, allocations: 0 / 0.7689 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.113e-06/0.3908, allocations: 0 / 0.7689 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.3911, allocations: 103.9 kB / 0.769 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.896e-06/0.3911, allocations: 0 / 0.769 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.644e-05/0.3911, allocations: 4 kB / 0.7691 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.3912, allocations: 55.86 kB / 0.7691 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3912, allocations: 3.938 kB / 0.7691 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3913, allocations: 3.938 kB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.3913, allocations: 0 / 0.7691 GB, free: 1.824 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.0002696/0.3915, allocations: 327.6 kB / 0.7694 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.3916, allocations: 12.02 kB / 0.7694 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.3916, allocations: 4.938 kB / 0.7694 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.729e-05/0.3917, allocations: 160.4 kB / 0.7696 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.3917, allocations: 384 / 0.7696 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-06/0.3917, allocations: 4.375 kB / 0.7696 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.032e-05/0.3918, allocations: 34.02 kB / 0.7696 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3918, allocations: 0 / 0.7696 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.3918, allocations: 0 / 0.7696 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3918, allocations: 0 / 0.7696 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.978e-05/0.3919, allocations: 4 kB / 0.7696 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.392, allocations: 155.5 kB / 0.7698 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.531e-05/0.392, allocations: 22.55 kB / 0.7698 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.601e-05/0.3921, allocations: 8.859 kB / 0.7698 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005062/0.3926, allocations: 0.5584 MB / 0.7704 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3926, allocations: 38.5 kB / 0.7704 GB, free: 228 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3926, allocations: 0 / 0.7704 GB, free: 228 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.00013/0.3927, allocations: 41.64 kB / 0.7704 GB, free: 180 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.3928, allocations: 51.41 kB / 0.7705 GB, free: 116 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.576e-05/0.3928, allocations: 89.86 kB / 0.7706 GB, free: 16 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.3929, allocations: 25.7 kB / 0.7706 GB, free: 15.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.202e-05/0.3929, allocations: 80.14 kB / 0.7707 GB, free: 15.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.3929, allocations: 7.562 kB / 0.7707 GB, free: 15.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.3929, allocations: 17.83 kB / 0.7707 GB, free: 15.88 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3931, allocations: 314.8 kB / 0.771 GB, free: 15.56 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.21e-05/0.3931, allocations: 0 / 0.771 GB, free: 15.56 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.024e-06/0.3931, allocations: 4 kB / 0.771 GB, free: 15.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.465e-05/0.3931, allocations: 8.859 kB / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3931, allocations: 0 / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.266e-05/0.3932, allocations: 41.62 kB / 0.771 GB, free: 15.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3932, allocations: 7.938 kB / 0.7711 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3932, allocations: 4.094 kB / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.3932, allocations: 3.938 kB / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.986e-05/0.3933, allocations: 7.984 kB / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.3933, allocations: 0 / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.027e-05/0.3933, allocations: 0 / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.3933, allocations: 0 / 0.7711 GB, free: 15.47 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 5.734e-05/0.3934, allocations: 108.2 kB / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.3934, allocations: 11.88 kB / 0.7712 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.634e-05/0.3935, allocations: 48.8 kB / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3935, allocations: 0 / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3935, allocations: 0 / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3935, allocations: 0 / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.502e-05/0.3936, allocations: 145.7 kB / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3936, allocations: 3.938 kB / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.31e-05/0.3936, allocations: 0 / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3936, allocations: 3.938 kB / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.3936, allocations: 0 / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3936, allocations: 7.984 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3936, allocations: 4.031 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.754e-05/0.3937, allocations: 53.14 kB / 0.7714 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.542e-05/0.3937, allocations: 77.11 kB / 0.7715 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.3937, allocations: 7.938 kB / 0.7715 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-06/0.3938, allocations: 0 / 0.7715 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.215e-05/0.3938, allocations: 3.984 kB / 0.7715 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.3938, allocations: 4 kB / 0.7715 GB, free: 14.91 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.675e-05/0.3938, allocations: 79.31 kB / 0.7716 GB, free: 14.83 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3938, allocations: 0 / 0.7716 GB, free: 14.83 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001866/0.394, allocations: 8 kB / 0.7716 GB, free: 14.82 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.0001477/0.3942, allocations: 103.2 kB / 0.7717 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.42e-05/0.3942, allocations: 11.94 kB / 0.7717 GB, free: 14.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3942, allocations: 0 / 0.7717 GB, free: 14.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.769e-06/0.3943, allocations: 7.984 kB / 0.7717 GB, free: 14.69 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.3944, allocations: 8.062 kB / 0.7717 GB, free: 14.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001828/0.3946, allocations: 102.8 kB / 0.7718 GB, free: 14.55 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.3948, allocations: 0.669 MB / 0.7725 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.495e-05/0.3948, allocations: 7.438 kB / 0.7725 GB, free: 13.84 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.3948, allocations: 3.938 kB / 0.7725 GB, free: 13.84 MB / 0.545 GB Notification: Performance of Templates: time 0.001515/0.3963, allocations: 437.4 kB / 0.7729 GB, free: 13.41 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)