Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IDEAS_dev_IDEAS_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.01008/0.01008, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.002356/0.002356, allocations: 199.8 kB / 16.67 MB, free: 5.531 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8337/0.8337, allocations: 135.6 MB / 426.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 70.3 kB / 0.5858 GB, free: 21.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1802, allocations: 81.01 MB / 0.6649 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction): time 0.002051/0.1823, allocations: 0.5681 MB / 0.6655 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.1841, allocations: 1.255 MB / 0.6667 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.117e-05/0.1842, allocations: 0 / 0.6667 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.382e-05/0.1842, allocations: 0 / 0.6667 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.151e-06/0.1842, allocations: 0 / 0.6667 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.1846, allocations: 59.75 kB / 0.6667 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.654e-05/0.1847, allocations: 8 kB / 0.6667 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.1847, allocations: 3.984 kB / 0.6667 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.441e-05/0.1847, allocations: 0 / 0.6667 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.598e-05/0.1848, allocations: 4 kB / 0.6668 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.516e-06/0.1848, allocations: 0 / 0.6668 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.1851, allocations: 91.89 kB / 0.6668 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.687e-06/0.1851, allocations: 0 / 0.6668 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.1852, allocations: 3.938 kB / 0.6668 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.1853, allocations: 52.16 kB / 0.6669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.1853, allocations: 0 / 0.6669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.215e-06/0.1853, allocations: 0 / 0.6669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.1854, allocations: 4 kB / 0.6669 GB, free: 3.531 MB / 0.4981 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.0003937/0.1858, allocations: 327.5 kB / 0.6672 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1858, allocations: 9.109 kB / 0.6672 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.672e-05/0.1859, allocations: 34.69 kB / 0.6673 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.226e-05/0.1859, allocations: 0.9375 kB / 0.6673 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.186, allocations: 160.4 kB / 0.6674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.186, allocations: 4.375 kB / 0.6674 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.186, allocations: 4.312 kB / 0.6674 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.1862, allocations: 33.83 kB / 0.6674 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.1862, allocations: 0 / 0.6674 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.1862, allocations: 0 / 0.6674 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1862, allocations: 0 / 0.6674 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.421e-05/0.1862, allocations: 7.984 kB / 0.6675 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.1864, allocations: 145.7 kB / 0.6676 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.89e-05/0.1864, allocations: 22.55 kB / 0.6676 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.741e-05/0.1865, allocations: 4.859 kB / 0.6676 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006208/0.1871, allocations: 0.5662 MB / 0.6682 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.1871, allocations: 34.5 kB / 0.6682 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1871, allocations: 0 / 0.6682 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001446/0.1873, allocations: 37.64 kB / 0.6682 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.1873, allocations: 51.41 kB / 0.6683 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.422e-05/0.1874, allocations: 93.98 kB / 0.6684 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.1874, allocations: 25.7 kB / 0.6684 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.529e-05/0.1875, allocations: 84.08 kB / 0.6685 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/0.1875, allocations: 7.938 kB / 0.6685 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.1875, allocations: 17.7 kB / 0.6685 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1877, allocations: 310.8 kB / 0.6688 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.1877, allocations: 0 / 0.6688 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-06/0.1877, allocations: 0 / 0.6688 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.879e-05/0.1878, allocations: 12.92 kB / 0.6688 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1878, allocations: 0 / 0.6688 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.886e-05/0.1879, allocations: 45.59 kB / 0.6689 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1879, allocations: 7.938 kB / 0.6689 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1879, allocations: 0 / 0.6689 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1879, allocations: 0 / 0.6689 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.373e-05/0.188, allocations: 7.984 kB / 0.6689 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.188, allocations: 0 / 0.6689 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.216e-05/0.188, allocations: 0 / 0.6689 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.188, allocations: 0 / 0.6689 GB, free: 1.145 MB / 0.4981 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 8.684e-05/0.1881, allocations: 109.9 kB / 0.669 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-06/0.1881, allocations: 3.938 kB / 0.669 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.1882, allocations: 48.81 kB / 0.669 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1883, allocations: 0 / 0.669 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.1883, allocations: 3.984 kB / 0.669 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1883, allocations: 0 / 0.669 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.1884, allocations: 141.7 kB / 0.6692 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1884, allocations: 8.031 kB / 0.6692 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.64e-05/0.1884, allocations: 3.938 kB / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1884, allocations: 3.938 kB / 0.6692 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.79e-06/0.1885, allocations: 3.938 kB / 0.6692 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1885, allocations: 0 / 0.6692 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1885, allocations: 3.984 kB / 0.6692 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.403e-05/0.1886, allocations: 57.14 kB / 0.6692 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.716e-05/0.1886, allocations: 85.08 kB / 0.6693 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.1886, allocations: 0 / 0.6693 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-06/0.1886, allocations: 0 / 0.6693 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.546e-05/0.1887, allocations: 7.984 kB / 0.6693 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.1887, allocations: 0 / 0.6693 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.424e-05/0.1887, allocations: 75.28 kB / 0.6694 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1887, allocations: 3.938 kB / 0.6694 GB, free: 500 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000195/0.1889, allocations: 4 kB / 0.6694 GB, free: 496 kB / 0.4981 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.0004734/0.1894, allocations: 0.6085 MB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 7.867e-05/0.1895, allocations: 4 kB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.1895, allocations: 0 / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.337e-06/0.1895, allocations: 4 kB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.1897, allocations: 2.031 kB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003191/0.19, allocations: 126.6 kB / 0.6701 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1903, allocations: 0.669 MB / 0.6708 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.9e-05/0.1904, allocations: 4 kB / 0.6708 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.71e-05/0.1904, allocations: 7.438 kB / 0.6708 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1904, allocations: 0 / 0.6708 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.2131, allocations: 1.025 MB / 0.6718 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.136, allocations: 17.48 kB / 0.6718 GB, free: 14.01 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)