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.004871/0.004871, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001296/0.001296, allocations: 201.2 kB / 16.68 MB, free: 5.973 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9883/0.9883, allocations: 135.6 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.89 kB / 0.5858 GB, free: 3.164 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3613, allocations: 81.03 MB / 0.6649 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001487/0.3629, allocations: 0.5717 MB / 0.6655 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.3642, allocations: 1.236 MB / 0.6667 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.981e-05/0.3642, allocations: 4 kB / 0.6667 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.3642, allocations: 0 / 0.6667 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.843e-06/0.3643, allocations: 3.938 kB / 0.6667 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.3646, allocations: 62.84 kB / 0.6668 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.073e-05/0.3647, allocations: 1.531 kB / 0.6668 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.495e-05/0.3647, allocations: 5.25 kB / 0.6668 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.619e-05/0.3648, allocations: 1.375 kB / 0.6668 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.098e-05/0.3648, allocations: 9.203 kB / 0.6668 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.955e-06/0.3648, allocations: 0 / 0.6668 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.365, allocations: 93.41 kB / 0.6669 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.388e-06/0.3651, allocations: 7.984 kB / 0.6669 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.591e-05/0.3651, allocations: 1.438 kB / 0.6669 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.3652, allocations: 49.14 kB / 0.6669 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3652, allocations: 0 / 0.6669 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3652, allocations: 1.5 kB / 0.6669 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3652, allocations: 0 / 0.6669 GB, free: 5.344 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.0002553/0.3655, allocations: 322.9 kB / 0.6672 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3655, allocations: 9.375 kB / 0.6672 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.307e-05/0.3656, allocations: 30.75 kB / 0.6673 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.16e-05/0.3656, allocations: 4.938 kB / 0.6673 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.694e-05/0.3657, allocations: 169.5 kB / 0.6674 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.3657, allocations: 4.375 kB / 0.6674 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.3657, allocations: 1.969 kB / 0.6674 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.3658, allocations: 35.58 kB / 0.6675 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.3658, allocations: 0 / 0.6675 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.3658, allocations: 3.984 kB / 0.6675 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3658, allocations: 0 / 0.6675 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.039e-05/0.3659, allocations: 3 kB / 0.6675 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.366, allocations: 149.6 kB / 0.6676 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.513e-05/0.366, allocations: 29.19 kB / 0.6676 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.461e-05/0.366, allocations: 6.422 kB / 0.6677 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.3664, allocations: 0.5536 MB / 0.6682 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.3664, allocations: 36.12 kB / 0.6682 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3664, allocations: 4 kB / 0.6682 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001283/0.3666, allocations: 38.44 kB / 0.6683 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.137e-05/0.3666, allocations: 52.81 kB / 0.6683 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.712e-05/0.3666, allocations: 89.86 kB / 0.6684 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.293e-06/0.3666, allocations: 29.64 kB / 0.6684 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.071e-05/0.3666, allocations: 80.14 kB / 0.6685 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.058e-05/0.3667, allocations: 5.422 kB / 0.6685 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.3667, allocations: 11.31 kB / 0.6685 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.3667, allocations: 316.1 kB / 0.6688 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.3668, allocations: 4 kB / 0.6688 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-06/0.3668, allocations: 2.281 kB / 0.6688 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.526e-05/0.3668, allocations: 11.2 kB / 0.6688 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3668, allocations: 0 / 0.6688 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.454e-05/0.3669, allocations: 36.16 kB / 0.6689 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.3669, allocations: 9.344 kB / 0.6689 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.3669, allocations: 0 / 0.6689 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.3669, allocations: 4.094 kB / 0.6689 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.162e-05/0.3669, allocations: 6.375 kB / 0.6689 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.367, allocations: 0 / 0.6689 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.034e-05/0.367, allocations: 0 / 0.6689 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-06/0.367, allocations: 1.406 kB / 0.6689 GB, free: 3.031 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 4.106e-05/0.367, allocations: 107.1 kB / 0.669 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.367, allocations: 3.938 kB / 0.669 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-05/0.3671, allocations: 47.06 kB / 0.669 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.3671, allocations: 0 / 0.669 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3671, allocations: 4 kB / 0.6691 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3672, allocations: 1.469 kB / 0.6691 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.701e-05/0.3672, allocations: 145.7 kB / 0.6692 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3672, allocations: 1.219 kB / 0.6692 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.34e-05/0.3672, allocations: 1.125 kB / 0.6692 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.3672, allocations: 5.031 kB / 0.6692 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.3672, allocations: 3.938 kB / 0.6692 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3673, allocations: 1.312 kB / 0.6692 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3673, allocations: 7.969 kB / 0.6692 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.817e-05/0.3673, allocations: 55.61 kB / 0.6693 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.647e-05/0.3673, allocations: 88.97 kB / 0.6694 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.267e-06/0.3673, allocations: 1.188 kB / 0.6694 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-06/0.3674, allocations: 0 / 0.6694 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.3674, allocations: 1.5 kB / 0.6694 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.3674, allocations: 0 / 0.6694 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.187e-05/0.3674, allocations: 80.38 kB / 0.6694 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3674, allocations: 0 / 0.6694 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002006/0.3676, allocations: 5.375 kB / 0.6694 GB, free: 2.402 MB / 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.0002703/0.3679, allocations: 0.6011 MB / 0.67 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.003e-05/0.368, allocations: 12.16 kB / 0.67 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.368, allocations: 0 / 0.67 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.955e-06/0.368, allocations: 5.422 kB / 0.67 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.3681, allocations: 1.281 kB / 0.67 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002232/0.3683, allocations: 110.4 kB / 0.6701 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.262e-05/0.3684, allocations: 0.6705 MB / 0.6708 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.731e-05/0.3684, allocations: 17.2 kB / 0.6708 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.233e-05/0.3685, allocations: 7.438 kB / 0.6708 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.3685, allocations: 1 kB / 0.6708 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02001/0.3885, allocations: 1.02 MB / 0.6718 GB, free: 328 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/7.92, allocations: 5.891 kB / 0.6718 GB, free: 324 kB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)