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.0008036/0.0008037, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004542/0.004542, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.14/1.14, allocations: 223.2 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001593/0.001593, allocations: 267.1 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.906/0.906, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.000391, allocations: 15.02 kB / 0.5988 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1481, allocations: 88.55 MB / 0.6853 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0006413/0.1488, allocations: 305.4 kB / 0.6855 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.1503, allocations: 1.245 MB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.315e-06/0.1503, allocations: 0.5 kB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.213e-05/0.1503, allocations: 0.625 kB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.739e-06/0.1504, allocations: 7.938 kB / 0.6868 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.1506, allocations: 45.17 kB / 0.6868 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.028e-05/0.1507, allocations: 4 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.337e-05/0.1507, allocations: 0.9688 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.457e-05/0.1507, allocations: 3.984 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.62e-05/0.1508, allocations: 4 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.913e-06/0.1508, allocations: 7.406 kB / 0.6868 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.151, allocations: 95.89 kB / 0.6869 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.477e-06/0.151, allocations: 3.984 kB / 0.6869 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.1511, allocations: 25.7 kB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.1512, allocations: 51.94 kB / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1512, allocations: 0 / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1512, allocations: 0 / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1512, allocations: 0 / 0.687 GB, free: 13.13 MB / 494.1 MB 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.0002532/0.1515, allocations: 328.2 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1515, allocations: 12.66 kB / 0.6873 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.017e-05/0.1515, allocations: 34.69 kB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.793e-05/0.1516, allocations: 1.5 kB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.427e-05/0.1517, allocations: 160.7 kB / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-06/0.1517, allocations: 1.344 kB / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-06/0.1517, allocations: 384 / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.692e-05/0.1518, allocations: 39.38 kB / 0.6876 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.14e-06/0.1518, allocations: 0 / 0.6876 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.1518, allocations: 0 / 0.6876 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1518, allocations: 1.188 kB / 0.6876 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.797e-05/0.1518, allocations: 4 kB / 0.6876 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.152, allocations: 153.6 kB / 0.6877 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.294e-05/0.152, allocations: 20.02 kB / 0.6877 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.403e-05/0.152, allocations: 4.859 kB / 0.6877 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005317/0.1526, allocations: 0.5684 MB / 0.6883 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.1526, allocations: 40.81 kB / 0.6883 GB, free: 11.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1526, allocations: 0 / 0.6883 GB, free: 11.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000108/0.1527, allocations: 37.69 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.1528, allocations: 55.34 kB / 0.6884 GB, free: 11.38 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.714e-05/0.1528, allocations: 90.36 kB / 0.6885 GB, free: 11.29 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.1528, allocations: 25.7 kB / 0.6885 GB, free: 11.25 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.261e-05/0.1528, allocations: 80.89 kB / 0.6886 GB, free: 11.17 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.1529, allocations: 4.594 kB / 0.6886 GB, free: 11.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/0.1529, allocations: 13.72 kB / 0.6886 GB, free: 11.15 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.153, allocations: 316.8 kB / 0.6889 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-06/0.153, allocations: 0 / 0.6889 GB, free: 10.83 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.408e-06/0.153, allocations: 0 / 0.6889 GB, free: 10.83 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.43e-05/0.1531, allocations: 11.48 kB / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1531, allocations: 0 / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.816e-05/0.1531, allocations: 33.69 kB / 0.689 GB, free: 10.78 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1532, allocations: 11.94 kB / 0.689 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1532, allocations: 3.938 kB / 0.689 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.746e-06/0.1532, allocations: 0 / 0.689 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.676e-05/0.1532, allocations: 0.7812 kB / 0.689 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.1532, allocations: 0 / 0.689 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.1532, allocations: 9.625 kB / 0.689 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-06/0.1533, allocations: 0 / 0.689 GB, free: 10.76 MB / 494.1 MB 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.02e-05/0.1533, allocations: 111.2 kB / 0.6891 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.835e-06/0.1533, allocations: 4.812 kB / 0.6891 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.836e-05/0.1534, allocations: 41.94 kB / 0.6891 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1534, allocations: 0 / 0.6891 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1534, allocations: 0.9375 kB / 0.6891 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.1535, allocations: 3.984 kB / 0.6891 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.212e-05/0.1535, allocations: 150.2 kB / 0.6893 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1535, allocations: 0 / 0.6893 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.467e-05/0.1536, allocations: 4.25 kB / 0.6893 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1536, allocations: 7.938 kB / 0.6893 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-06/0.1536, allocations: 3.938 kB / 0.6893 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1536, allocations: 0 / 0.6893 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1536, allocations: 0 / 0.6893 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.413e-05/0.1537, allocations: 53.14 kB / 0.6893 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.1537, allocations: 88.97 kB / 0.6894 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.418e-06/0.1537, allocations: 0 / 0.6894 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-06/0.1537, allocations: 7.969 kB / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.1537, allocations: 4 kB / 0.6894 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.1538, allocations: 4 kB / 0.6895 GB, free: 10.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.913e-05/0.1538, allocations: 75.28 kB / 0.6895 GB, free: 10.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1538, allocations: 0 / 0.6895 GB, free: 10.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001871/0.154, allocations: 4 kB / 0.6895 GB, free: 10.11 MB / 494.1 MB 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.0003513/0.1543, allocations: 0.6046 MB / 0.6901 GB, free: 9.469 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 4.722e-05/0.1544, allocations: 4 kB / 0.6901 GB, free: 9.465 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1544, allocations: 8 kB / 0.6901 GB, free: 9.457 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.931e-06/0.1544, allocations: 0 / 0.6901 GB, free: 9.457 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.1545, allocations: 3.984 kB / 0.6901 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000254/0.1548, allocations: 108.4 kB / 0.6902 GB, free: 9.309 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.155, allocations: 0.6771 MB / 0.6909 GB, free: 8.605 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.876e-05/0.1551, allocations: 4 kB / 0.6909 GB, free: 8.602 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.1551, allocations: 7.438 kB / 0.6909 GB, free: 8.594 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1551, allocations: 0 / 0.6909 GB, free: 8.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01001/0.1651, allocations: 0.855 MB / 0.6917 GB, free: 7.906 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002113/0.1654, allocations: 220.4 kB / 0.692 GB, free: 7.652 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/1.835, allocations: 4 kB / 0.692 GB, free: 7.648 MB / 494.1 MB (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)