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.008099/0.008099, allocations: 101.2 kB / 15.73 MB, free: 6.004 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.001877/0.001877, allocations: 187 kB / 16.67 MB, free: 5.922 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8232/0.8232, allocations: 135.1 MB / 425.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 60.78 kB / 0.5852 GB, free: 21.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1425, allocations: 80.93 MB / 0.6642 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001951/0.1445, allocations: 0.61 MB / 0.6648 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.1461, allocations: 1.266 MB / 0.666 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.52e-05/0.1462, allocations: 0 / 0.666 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.1462, allocations: 4 kB / 0.666 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.857e-05/0.1463, allocations: 3.938 kB / 0.6661 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.1467, allocations: 75.78 kB / 0.6661 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.747e-05/0.1467, allocations: 23.86 kB / 0.6661 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.762e-05/0.1468, allocations: 4 kB / 0.6661 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.212e-05/0.1468, allocations: 8 kB / 0.6662 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.045e-05/0.1469, allocations: 23.89 kB / 0.6662 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.1469, allocations: 4 kB / 0.6662 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.1472, allocations: 83.92 kB / 0.6663 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.1472, allocations: 15.97 kB / 0.6663 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.672e-05/0.1472, allocations: 11.94 kB / 0.6663 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.1474, allocations: 60.08 kB / 0.6663 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1474, allocations: 0 / 0.6663 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.1474, allocations: 0 / 0.6663 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.1474, allocations: 0 / 0.6663 GB, free: 4.031 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.0004885/0.1479, allocations: 351.3 kB / 0.6667 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.148, allocations: 13.11 kB / 0.6667 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.766e-05/0.148, allocations: 34.73 kB / 0.6667 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.148, allocations: 12.89 kB / 0.6667 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.1482, allocations: 164.3 kB / 0.6669 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.1482, allocations: 4.375 kB / 0.6669 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.1482, allocations: 8.312 kB / 0.6669 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.1484, allocations: 61.78 kB / 0.667 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1484, allocations: 0 / 0.667 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1484, allocations: 0 / 0.667 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1484, allocations: 7.938 kB / 0.667 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.034e-05/0.1485, allocations: 19.98 kB / 0.667 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.1487, allocations: 169.6 kB / 0.6672 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.1488, allocations: 58.5 kB / 0.6672 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.295e-05/0.1488, allocations: 28.84 kB / 0.6672 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000493/0.1493, allocations: 0.5583 MB / 0.6678 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.1494, allocations: 38.5 kB / 0.6678 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.1494, allocations: 0 / 0.6678 GB, free: 2.223 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.01985/0.1692, allocations: 4.309 MB / 0.672 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.1693, allocations: 51.41 kB / 0.6721 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.385e-05/0.1694, allocations: 97.86 kB / 0.6722 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.932e-05/0.1695, allocations: 25.7 kB / 0.6722 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.1695, allocations: 84.14 kB / 0.6723 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1696, allocations: 67.42 kB / 0.6723 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.1699, allocations: 89.66 kB / 0.6724 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.822e-05/0.17, allocations: 322.8 kB / 0.6727 GB, free: 13 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/0.1705, allocations: 307.9 kB / 0.673 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.171, allocations: 315.9 kB / 0.6733 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.1725, allocations: 0.7604 MB / 0.6741 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1725, allocations: 0 / 0.6741 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001507/0.174, allocations: 0.788 MB / 0.6748 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1741, allocations: 8 kB / 0.6749 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1741, allocations: 3.938 kB / 0.6749 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1741, allocations: 0 / 0.6749 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008881/0.175, allocations: 95.88 kB / 0.6749 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.175, allocations: 0 / 0.6749 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005593/0.1756, allocations: 12 kB / 0.675 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.852e-05/0.1757, allocations: 31.98 kB / 0.675 GB, free: 10.68 MB / 0.5137 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.0001878/0.1759, allocations: 123.1 kB / 0.6751 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.793e-05/0.1759, allocations: 7.953 kB / 0.6751 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002878/0.1788, allocations: 1.392 MB / 0.6765 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1788, allocations: 4 kB / 0.6765 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1789, allocations: 0 / 0.6765 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1789, allocations: 0 / 0.6765 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.1817, allocations: 1.806 MB / 0.6782 GB, free: 7.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1818, allocations: 0 / 0.6782 GB, free: 7.277 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.1826, allocations: 107.9 kB / 0.6783 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1826, allocations: 4 kB / 0.6783 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.14e-05/0.1827, allocations: 31.94 kB / 0.6784 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.1827, allocations: 12.03 kB / 0.6784 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1827, allocations: 0 / 0.6784 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.185, allocations: 1.454 MB / 0.6798 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.1851, allocations: 89.05 kB / 0.6799 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.661e-05/0.1852, allocations: 15.94 kB / 0.6799 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005431/0.1857, allocations: 8 kB / 0.6799 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.1859, allocations: 48.03 kB / 0.68 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.851e-05/0.1859, allocations: 27.98 kB / 0.68 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.023e-05/0.186, allocations: 79.28 kB / 0.6801 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.186, allocations: 0 / 0.6801 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000554/0.1865, allocations: 175.7 kB / 0.6802 GB, free: 5.195 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.002929/0.1895, allocations: 2.123 MB / 0.6823 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001219/0.1907, allocations: 0.7262 MB / 0.683 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1907, allocations: 0 / 0.683 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.1914, allocations: 456 kB / 0.6834 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.1917, allocations: 19.98 kB / 0.6835 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007461/0.1992, allocations: 3.7 MB / 0.6871 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.1995, allocations: 0.7182 MB / 0.6878 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0009995/0.2005, allocations: 293.5 kB / 0.6881 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005781/0.201, allocations: 119.4 kB / 0.6882 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.2011, allocations: 3.938 kB / 0.6882 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03376/0.2348, allocations: 12.66 MB / 0.7005 GB, free: 416 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.773/8.008, allocations: 7.938 kB / 0.7006 GB, free: 408 kB / 0.5294 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)