Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",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.00163/0.00163, allocations: 108 kB / 15.61 MB, free: 152 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.002041/0.002041, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.494/1.494, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.92/0.92, allocations: 135.1 MB / 425.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 64.19 kB / 0.5055 GB, free: 5.219 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1523, allocations: 80.93 MB / 0.5845 GB, free: 4.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001901/0.1542, allocations: 0.5992 MB / 0.5851 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.1559, allocations: 1.265 MB / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.528e-05/0.156, allocations: 0 / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.475e-05/0.156, allocations: 0 / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.848e-05/0.156, allocations: 0 / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003679/0.1564, allocations: 78.12 kB / 0.5864 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.157e-05/0.1565, allocations: 19.98 kB / 0.5864 GB, free: 2.457 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.191e-05/0.1565, allocations: 4 kB / 0.5864 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.937e-05/0.1565, allocations: 15.92 kB / 0.5864 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.928e-05/0.1566, allocations: 23.84 kB / 0.5864 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.1566, allocations: 4 kB / 0.5865 GB, free: 2.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.1568, allocations: 91.91 kB / 0.5865 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.481e-05/0.1569, allocations: 7.984 kB / 0.5865 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.1569, allocations: 11.92 kB / 0.5866 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.157, allocations: 63.86 kB / 0.5866 GB, free: 2.238 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.157, allocations: 4 kB / 0.5866 GB, free: 2.234 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.157, allocations: 0 / 0.5866 GB, free: 2.234 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.157, allocations: 0 / 0.5866 GB, free: 2.234 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004097/0.1575, allocations: 351.7 kB / 0.587 GB, free: 1.844 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1575, allocations: 8.031 kB / 0.587 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.282e-05/0.1575, allocations: 34.75 kB / 0.587 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.1576, allocations: 4.938 kB / 0.587 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.1577, allocations: 172.3 kB / 0.5872 GB, free: 1.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1577, allocations: 4.375 kB / 0.5872 GB, free: 1.578 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.1577, allocations: 8.312 kB / 0.5872 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.1579, allocations: 57.8 kB / 0.5872 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1579, allocations: 0 / 0.5872 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.1579, allocations: 0 / 0.5872 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/0.1579, allocations: 0 / 0.5872 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.115e-05/0.158, allocations: 23.98 kB / 0.5873 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001684/0.1581, allocations: 173.5 kB / 0.5874 GB, free: 1.266 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.1583, allocations: 62.5 kB / 0.5875 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.144e-05/0.1583, allocations: 24.86 kB / 0.5875 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000457/0.1588, allocations: 0.5583 MB / 0.5881 GB, free: 492 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.1588, allocations: 38.44 kB / 0.5881 GB, free: 444 kB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.1588, allocations: 0 / 0.5881 GB, free: 444 kB / 494.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.021/0.1798, allocations: 4.298 MB / 0.5923 GB, free: 12 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.1799, allocations: 55.41 kB / 0.5923 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.815e-05/0.18, allocations: 89.86 kB / 0.5924 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.311e-05/0.1801, allocations: 33.83 kB / 0.5925 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/0.1801, allocations: 84.12 kB / 0.5925 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.1802, allocations: 59.11 kB / 0.5926 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002509/0.1805, allocations: 89.67 kB / 0.5927 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.881e-05/0.1806, allocations: 322.8 kB / 0.593 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005195/0.1811, allocations: 311.8 kB / 0.5933 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005174/0.1816, allocations: 314.2 kB / 0.5936 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.1832, allocations: 0.7506 MB / 0.5943 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1832, allocations: 4 kB / 0.5943 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001561/0.1847, allocations: 0.7921 MB / 0.5951 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1848, allocations: 4 kB / 0.5951 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1848, allocations: 0 / 0.5951 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.1848, allocations: 4 kB / 0.5951 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000891/0.1857, allocations: 99.81 kB / 0.5952 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.1857, allocations: 400 / 0.5952 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005896/0.1863, allocations: 8 kB / 0.5952 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.092e-05/0.1864, allocations: 35.97 kB / 0.5952 GB, free: 8.918 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 (18): * Single equations (assignments): 18 * 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 0.0002104/0.1866, allocations: 125.8 kB / 0.5954 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.567e-05/0.1867, allocations: 4 kB / 0.5954 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003511/0.1902, allocations: 1.392 MB / 0.5967 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.1903, allocations: 4 kB / 0.5967 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1903, allocations: 0 / 0.5967 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1903, allocations: 3.984 kB / 0.5967 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.1935, allocations: 1.821 MB / 0.5985 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1935, allocations: 0 / 0.5985 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00084/0.1943, allocations: 111.9 kB / 0.5986 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.188e-06/0.1944, allocations: 4 kB / 0.5986 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-05/0.1944, allocations: 27.94 kB / 0.5986 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.1944, allocations: 3.984 kB / 0.5987 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1945, allocations: 4 kB / 0.5987 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.1969, allocations: 1.449 MB / 0.6001 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.1969, allocations: 96.98 kB / 0.6002 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.764e-05/0.197, allocations: 15.98 kB / 0.6002 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/0.1976, allocations: 12 kB / 0.6002 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.1978, allocations: 39.97 kB / 0.6002 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.797e-05/0.1979, allocations: 32 kB / 0.6003 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.549e-05/0.1979, allocations: 79.28 kB / 0.6003 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.5e-07/0.1979, allocations: 0 / 0.6003 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005905/0.1985, allocations: 176 kB / 0.6005 GB, free: 3.414 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.003248/0.2018, allocations: 2.116 MB / 0.6026 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001486/0.2033, allocations: 0.7378 MB / 0.6033 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.2033, allocations: 0 / 0.6033 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007591/0.2041, allocations: 456.1 kB / 0.6037 GB, free: 88 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.2045, allocations: 12 kB / 0.6037 GB, free: 76 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2341/0.4386, allocations: 3.701 MB / 0.6073 GB, free: 51.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.4388, allocations: 0.7169 MB / 0.608 GB, free: 51.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001405/0.4402, allocations: 292.9 kB / 0.6083 GB, free: 51.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005477/0.4407, allocations: 119.4 kB / 0.6084 GB, free: 51.15 MB / 0.4981 GB Notification: Performance of SimCode: time 7.51e-07/0.4407, allocations: 0 / 0.6084 GB, free: 51.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.4703, allocations: 12.61 MB / 0.6208 GB, free: 50.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.219/7.689, allocations: 0 / 0.6208 GB, free: 50.28 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_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_SpliceFunctionDerivativeCheck.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)