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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0051/0.0051, allocations: 101.8 kB / 15.73 MB, free: 6.012 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.001322/0.001322, allocations: 190.9 kB / 16.67 MB, free: 5.934 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.252/1.252, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002131/0.002131, allocations: 287 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8848/0.8848, allocations: 169.2 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 103.8 kB / 0.681 GB, free: 7.398 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4361/0.4379, allocations: 86.97 MB / 0.7659 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001516/0.4395, allocations: 0.5744 MB / 0.7665 GB, free: 3.293 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.4409, allocations: 1.256 MB / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.5e-05/0.441, allocations: 0 / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.303e-05/0.441, allocations: 0 / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.1e-06/0.441, allocations: 0 / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.4413, allocations: 71.73 kB / 0.7678 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.679e-05/0.4414, allocations: 0 / 0.7678 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.912e-05/0.4414, allocations: 4 kB / 0.7678 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.186e-05/0.4414, allocations: 0 / 0.7678 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.465e-05/0.4415, allocations: 0 / 0.7678 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.813e-06/0.4415, allocations: 0 / 0.7678 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000228/0.4417, allocations: 107.9 kB / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.4417, allocations: 0 / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.326e-05/0.4418, allocations: 0 / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.4419, allocations: 55.88 kB / 0.768 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.4419, allocations: 4 kB / 0.768 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.262e-06/0.4419, allocations: 0 / 0.768 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.4419, allocations: 4 kB / 0.768 GB, free: 1.777 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.0002636/0.4422, allocations: 326.4 kB / 0.7683 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.4422, allocations: 8.031 kB / 0.7683 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.4423, allocations: 38.75 kB / 0.7683 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.064e-05/0.4423, allocations: 4.938 kB / 0.7683 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.989e-05/0.4424, allocations: 160.4 kB / 0.7685 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-06/0.4424, allocations: 4.312 kB / 0.7685 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-06/0.4424, allocations: 4.375 kB / 0.7685 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.697e-05/0.4425, allocations: 37.81 kB / 0.7685 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.4425, allocations: 0 / 0.7685 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.671e-06/0.4425, allocations: 0 / 0.7685 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.4425, allocations: 0 / 0.7685 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.662e-05/0.4425, allocations: 0 / 0.7685 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001211/0.4427, allocations: 147.5 kB / 0.7687 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.461e-05/0.4427, allocations: 26.5 kB / 0.7687 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.429e-05/0.4427, allocations: 8.859 kB / 0.7687 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005517/0.4433, allocations: 0.5623 MB / 0.7692 GB, free: 184 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.4433, allocations: 34.5 kB / 0.7693 GB, free: 140 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4433, allocations: 0 / 0.7693 GB, free: 140 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.4435, allocations: 37.69 kB / 0.7693 GB, free: 96 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.4435, allocations: 55.53 kB / 0.7694 GB, free: 28 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.511e-05/0.4436, allocations: 93.8 kB / 0.7695 GB, free: 15.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.4436, allocations: 29.7 kB / 0.7695 GB, free: 15.89 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.94e-05/0.4436, allocations: 80.14 kB / 0.7696 GB, free: 15.81 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.884e-05/0.4436, allocations: 3.906 kB / 0.7696 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.4437, allocations: 9.719 kB / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.4438, allocations: 318.8 kB / 0.7699 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.025e-05/0.4438, allocations: 4 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.279e-06/0.4438, allocations: 4 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.755e-05/0.4438, allocations: 8.859 kB / 0.7699 GB, free: 15.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4439, allocations: 3.938 kB / 0.7699 GB, free: 15.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.088e-05/0.4439, allocations: 33.69 kB / 0.7699 GB, free: 15.41 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.4439, allocations: 7.938 kB / 0.7699 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.4439, allocations: 4 kB / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.444, allocations: 0 / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.801e-05/0.444, allocations: 0 / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.444, allocations: 4.078 kB / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.048e-05/0.444, allocations: 7.938 kB / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-06/0.4441, allocations: 4 kB / 0.77 GB, free: 15.38 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.93e-05/0.4441, allocations: 109.8 kB / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-06/0.4441, allocations: 3.938 kB / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.888e-05/0.4442, allocations: 36.81 kB / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.4442, allocations: 4 kB / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.4442, allocations: 4.031 kB / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4442, allocations: 0 / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.793e-05/0.4443, allocations: 145.7 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4443, allocations: 0 / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.588e-05/0.4443, allocations: 4 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4444, allocations: 3.938 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.829e-06/0.4444, allocations: 0 / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4444, allocations: 4 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.4444, allocations: 0 / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.922e-05/0.4444, allocations: 65.08 kB / 0.7703 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.659e-05/0.4445, allocations: 85.03 kB / 0.7704 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.616e-06/0.4445, allocations: 0 / 0.7704 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.335e-06/0.4445, allocations: 0 / 0.7704 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.4445, allocations: 0 / 0.7704 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.4445, allocations: 0 / 0.7704 GB, free: 14.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.14e-05/0.4445, allocations: 79.28 kB / 0.7705 GB, free: 14.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4446, allocations: 0 / 0.7705 GB, free: 14.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001755/0.4447, allocations: 8 kB / 0.7705 GB, free: 14.74 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.0003283/0.4451, allocations: 0.6124 MB / 0.7711 GB, free: 14.09 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.169e-05/0.4451, allocations: 4 kB / 0.7711 GB, free: 14.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4451, allocations: 0 / 0.7711 GB, free: 14.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.089e-05/0.4452, allocations: 8.078 kB / 0.7711 GB, free: 14.08 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.4453, allocations: 14.52 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002687/0.4456, allocations: 106.7 kB / 0.7712 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.4458, allocations: 0.669 MB / 0.7719 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.105e-05/0.4458, allocations: 11.97 kB / 0.7719 GB, free: 13.22 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.508e-05/0.4458, allocations: 7.438 kB / 0.7719 GB, free: 13.21 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.4458, allocations: 0 / 0.7719 GB, free: 13.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.4626, allocations: 1.048 MB / 0.7729 GB, free: 12.29 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.903/7.365, allocations: 13.03 kB / 0.7729 GB, free: 12.29 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)