Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IDEAS_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.001094/0.001094, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7576/0.7576, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 73.42 kB / 0.5019 GB, free: 3.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3708, allocations: 80.2 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001669/0.3725, allocations: 0.5868 MB / 0.5808 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.3737, allocations: 1.242 MB / 0.582 GB, free: 3.281 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.371e-05/0.3737, allocations: 0 / 0.582 GB, free: 3.281 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.077e-06/0.3738, allocations: 0 / 0.582 GB, free: 3.281 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.938e-06/0.3738, allocations: 0 / 0.582 GB, free: 3.281 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.3741, allocations: 70.83 kB / 0.5821 GB, free: 3.246 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 3.89e-05/0.3742, allocations: 6.203 kB / 0.5821 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.701e-05/0.3742, allocations: 1.219 kB / 0.5821 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.254e-05/0.3742, allocations: 1.125 kB / 0.5821 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.335e-05/0.3743, allocations: 2.5 kB / 0.5821 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-06/0.3743, allocations: 0 / 0.5821 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.3745, allocations: 92.25 kB / 0.5822 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.3745, allocations: 1.375 kB / 0.5822 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.936e-05/0.3746, allocations: 0 / 0.5822 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.3747, allocations: 53.86 kB / 0.5822 GB, free: 3.199 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.3747, allocations: 0.625 kB / 0.5822 GB, free: 3.199 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.3747, allocations: 0 / 0.5822 GB, free: 3.199 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.118e-06/0.3747, allocations: 0.5938 kB / 0.5822 GB, free: 3.199 MB / 430.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.0002536/0.375, allocations: 328.8 kB / 0.5825 GB, free: 2.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.375, allocations: 10.55 kB / 0.5825 GB, free: 2.84 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.429e-05/0.3751, allocations: 30.75 kB / 0.5826 GB, free: 2.801 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.093e-05/0.3751, allocations: 2.375 kB / 0.5826 GB, free: 2.801 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.125e-05/0.3751, allocations: 165.5 kB / 0.5827 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3752, allocations: 5.188 kB / 0.5827 GB, free: 2.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.3752, allocations: 1.531 kB / 0.5827 GB, free: 2.598 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.803e-05/0.3753, allocations: 33.11 kB / 0.5828 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-06/0.3753, allocations: 0 / 0.5828 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.83e-06/0.3753, allocations: 0 / 0.5828 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3753, allocations: 0 / 0.5828 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.768e-05/0.3753, allocations: 2.703 kB / 0.5828 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.346e-05/0.3754, allocations: 148.8 kB / 0.5829 GB, free: 2.371 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.104e-05/0.3754, allocations: 24.55 kB / 0.5829 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.338e-05/0.3754, allocations: 6.188 kB / 0.5829 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003744/0.3758, allocations: 0.5597 MB / 0.5835 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.3759, allocations: 36.03 kB / 0.5835 GB, free: 1.629 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3759, allocations: 1.156 kB / 0.5835 GB, free: 1.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001038/0.376, allocations: 36.61 kB / 0.5836 GB, free: 1.594 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.476e-05/0.376, allocations: 51.41 kB / 0.5836 GB, free: 1.531 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.36e-05/0.376, allocations: 94.42 kB / 0.5837 GB, free: 1.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-06/0.376, allocations: 31.02 kB / 0.5837 GB, free: 1.395 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.345e-06/0.376, allocations: 80.14 kB / 0.5838 GB, free: 1.312 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.3761, allocations: 4.562 kB / 0.5838 GB, free: 1.309 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.3761, allocations: 20.62 kB / 0.5838 GB, free: 1.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.456e-05/0.3761, allocations: 312.9 kB / 0.5841 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.027e-05/0.3761, allocations: 9.016 kB / 0.5841 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.3762, allocations: 2 kB / 0.5841 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.023e-05/0.3762, allocations: 6.734 kB / 0.5841 GB, free: 0.957 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3762, allocations: 1.312 kB / 0.5841 GB, free: 0.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.206e-05/0.3762, allocations: 32.55 kB / 0.5842 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3762, allocations: 8.562 kB / 0.5842 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.3763, allocations: 0 / 0.5842 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3763, allocations: 1.562 kB / 0.5842 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.794e-05/0.3763, allocations: 1.938 kB / 0.5842 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3763, allocations: 8.781 kB / 0.5842 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.088e-05/0.3763, allocations: 4.781 kB / 0.5842 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.3764, allocations: 5.094 kB / 0.5842 GB, free: 0.9062 MB / 430.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 3.585e-05/0.3764, allocations: 107.6 kB / 0.5843 GB, free: 0.793 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-06/0.3764, allocations: 7.922 kB / 0.5843 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.476e-05/0.3765, allocations: 38.02 kB / 0.5843 GB, free: 0.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.3765, allocations: 4.031 kB / 0.5843 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3765, allocations: 0.9062 kB / 0.5843 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3765, allocations: 0.75 kB / 0.5843 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.293e-05/0.3766, allocations: 148 kB / 0.5845 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3766, allocations: 1.812 kB / 0.5845 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.331e-05/0.3766, allocations: 1.062 kB / 0.5845 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3766, allocations: 5.531 kB / 0.5845 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.3766, allocations: 0 / 0.5845 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3766, allocations: 1.219 kB / 0.5845 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3766, allocations: 0.6562 kB / 0.5845 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.718e-05/0.3767, allocations: 61.67 kB / 0.5846 GB, free: 492 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.298e-05/0.3767, allocations: 83.91 kB / 0.5846 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.3767, allocations: 5.719 kB / 0.5846 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.137e-06/0.3767, allocations: 0 / 0.5846 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.3767, allocations: 0.7812 kB / 0.5846 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3767, allocations: 1.328 kB / 0.5846 GB, free: 388 kB / 430.1 MB Notification: Performance of sorting global known variables: time 1.068e-05/0.3767, allocations: 76.19 kB / 0.5847 GB, free: 312 kB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3768, allocations: 0 / 0.5847 GB, free: 312 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002022/0.377, allocations: 10 kB / 0.5847 GB, free: 308 kB / 430.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.0003681/0.3773, allocations: 0.6042 MB / 0.5853 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.478e-05/0.3774, allocations: 8.656 kB / 0.5853 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3774, allocations: 96 / 0.5853 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 7.884e-06/0.3774, allocations: 6.906 kB / 0.5853 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.3776, allocations: 1.484 kB / 0.5853 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.3778, allocations: 108.5 kB / 0.5854 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.3781, allocations: 0.6705 MB / 0.5861 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.185e-05/0.3781, allocations: 5.859 kB / 0.5861 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.636e-05/0.3781, allocations: 8.094 kB / 0.5861 GB, free: 14.85 MB / 446.1 MB Notification: Performance of SimCode: time 3.346e-06/0.3781, allocations: 4.719 kB / 0.5861 GB, free: 14.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01511/0.3932, allocations: 0.9918 MB / 0.5871 GB, free: 14.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.077/7.47, allocations: 1.406 kB / 0.5871 GB, free: 14.51 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)