Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_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.00705/0.00705, allocations: 96.73 kB / 15.73 MB, free: 6.488 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.001332/0.001332, allocations: 189.5 kB / 16.67 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8118/0.8118, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001269, allocations: 69.48 kB / 0.5809 GB, free: 1.082 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1578, allocations: 80.21 MB / 0.6592 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001595/0.1594, allocations: 0.6169 MB / 0.6598 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.161, allocations: 1.275 MB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.196e-05/0.161, allocations: 3.938 kB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.659e-05/0.1611, allocations: 0 / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 1.998e-05/0.1611, allocations: 0 / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.1615, allocations: 71.75 kB / 0.6612 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.719e-05/0.1615, allocations: 23.92 kB / 0.6612 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.164e-05/0.1616, allocations: 7.969 kB / 0.6612 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.212e-05/0.1616, allocations: 12 kB / 0.6612 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.229e-05/0.1617, allocations: 15.92 kB / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.1617, allocations: 3.938 kB / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1619, allocations: 95.89 kB / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.22e-05/0.1619, allocations: 0 / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.412e-05/0.162, allocations: 15.92 kB / 0.6613 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.1621, allocations: 68.06 kB / 0.6614 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1621, allocations: 4 kB / 0.6614 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.173e-06/0.1621, allocations: 0 / 0.6614 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.1621, allocations: 0 / 0.6614 GB, free: 11.76 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000401/0.1625, allocations: 351.3 kB / 0.6617 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1626, allocations: 8.031 kB / 0.6617 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.1626, allocations: 34.75 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.1626, allocations: 4.891 kB / 0.6618 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.586e-05/0.1627, allocations: 160.4 kB / 0.6619 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1628, allocations: 12.38 kB / 0.6619 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.1628, allocations: 12.3 kB / 0.662 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.1629, allocations: 49.81 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1629, allocations: 4 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.163, allocations: 3.938 kB / 0.662 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.163, allocations: 0 / 0.662 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.172e-05/0.163, allocations: 23.97 kB / 0.662 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.1632, allocations: 169.6 kB / 0.6622 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.1633, allocations: 66.5 kB / 0.6623 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.116e-05/0.1634, allocations: 28.84 kB / 0.6623 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004497/0.1638, allocations: 0.5544 MB / 0.6628 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1639, allocations: 38.5 kB / 0.6629 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.203e-06/0.1639, allocations: 0 / 0.6629 GB, free: 9.957 MB / 0.4981 GB 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.02017/0.184, allocations: 4.304 MB / 0.6671 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.1841, allocations: 55.41 kB / 0.6671 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.249e-05/0.1842, allocations: 93.84 kB / 0.6672 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.455e-05/0.1843, allocations: 29.7 kB / 0.6672 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.14e-05/0.1843, allocations: 84.27 kB / 0.6673 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.1845, allocations: 63.44 kB / 0.6674 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.1848, allocations: 89.67 kB / 0.6675 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1849, allocations: 322.8 kB / 0.6678 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005483/0.1855, allocations: 311.8 kB / 0.6681 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005343/0.186, allocations: 313.7 kB / 0.6684 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.1876, allocations: 0.7545 MB / 0.6691 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1876, allocations: 0 / 0.6691 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001635/0.1892, allocations: 0.7967 MB / 0.6699 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1893, allocations: 4 kB / 0.6699 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1893, allocations: 3.984 kB / 0.6699 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.1893, allocations: 0 / 0.6699 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008784/0.1902, allocations: 95.89 kB / 0.67 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.1902, allocations: 0 / 0.67 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005572/0.1908, allocations: 12 kB / 0.67 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.1909, allocations: 35.97 kB / 0.67 GB, free: 2.434 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.0001999/0.1911, allocations: 118.4 kB / 0.6701 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-05/0.1912, allocations: 12 kB / 0.6702 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003034/0.1942, allocations: 1.388 MB / 0.6715 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.1942, allocations: 8 kB / 0.6715 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1943, allocations: 0 / 0.6715 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1943, allocations: 3.984 kB / 0.6715 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.1973, allocations: 1.794 MB / 0.6733 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1974, allocations: 4 kB / 0.6733 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008225/0.1982, allocations: 107.9 kB / 0.6734 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.1982, allocations: 0 / 0.6734 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.272e-05/0.1983, allocations: 35.92 kB / 0.6734 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.1983, allocations: 0 / 0.6734 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1983, allocations: 0.9375 kB / 0.6734 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.2007, allocations: 1.463 MB / 0.6748 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.2008, allocations: 97.03 kB / 0.6749 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.2009, allocations: 11.94 kB / 0.6749 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005964/0.2015, allocations: 12 kB / 0.675 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.2017, allocations: 39.97 kB / 0.675 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.621e-05/0.2018, allocations: 28 kB / 0.675 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.2018, allocations: 83.33 kB / 0.6751 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2018, allocations: 0 / 0.6751 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005842/0.2024, allocations: 175.7 kB / 0.6753 GB, free: 12.95 MB / 0.5137 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.003064/0.2055, allocations: 2.111 MB / 0.6773 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001294/0.2068, allocations: 0.7347 MB / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2068, allocations: 0 / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006474/0.2075, allocations: 455.7 kB / 0.6785 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.2079, allocations: 16 kB / 0.6785 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.2156, allocations: 3.707 MB / 0.6821 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.2158, allocations: 0.7181 MB / 0.6828 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00103/0.2169, allocations: 289.5 kB / 0.6831 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005757/0.2175, allocations: 123.4 kB / 0.6832 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of SimCode: time 4.9e-07/0.2175, allocations: 0 / 0.6832 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03065/0.2481, allocations: 12.66 MB / 0.6956 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/7.976, allocations: 4 kB / 0.6956 GB, free: 8.23 MB / 0.5294 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)