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.006133/0.006133, allocations: 102 kB / 15.73 MB, free: 5.551 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.001287/0.001287, allocations: 196.4 kB / 16.67 MB, free: 5.477 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8438/0.8438, allocations: 135.6 MB / 426.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002741/0.002741, allocations: 69.34 kB / 0.5858 GB, free: 21.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1607, allocations: 81.02 MB / 0.6649 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001734/0.1624, allocations: 0.5906 MB / 0.6655 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001693/0.1641, allocations: 1.278 MB / 0.6667 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.227e-05/0.1642, allocations: 0 / 0.6667 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.297e-05/0.1642, allocations: 0 / 0.6667 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.349e-05/0.1643, allocations: 0 / 0.6667 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.1646, allocations: 75.73 kB / 0.6668 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.371e-05/0.1647, allocations: 23.92 kB / 0.6668 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.758e-05/0.1647, allocations: 4 kB / 0.6668 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.377e-05/0.1648, allocations: 15.97 kB / 0.6669 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.08e-05/0.1649, allocations: 15.86 kB / 0.6669 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.1649, allocations: 4 kB / 0.6669 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.1651, allocations: 91.89 kB / 0.667 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.411e-05/0.1651, allocations: 8 kB / 0.667 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.1652, allocations: 15.92 kB / 0.667 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.1653, allocations: 64.06 kB / 0.667 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1653, allocations: 0 / 0.667 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.783e-06/0.1653, allocations: 4 kB / 0.667 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.1653, allocations: 3.938 kB / 0.6671 GB, free: 3.379 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.0004523/0.1658, allocations: 347.3 kB / 0.6674 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1658, allocations: 13.11 kB / 0.6674 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.823e-05/0.1659, allocations: 34.75 kB / 0.6674 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.1659, allocations: 12.89 kB / 0.6674 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.1661, allocations: 160.4 kB / 0.6676 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1661, allocations: 384 / 0.6676 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.1661, allocations: 20.25 kB / 0.6676 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.1663, allocations: 53.8 kB / 0.6677 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1663, allocations: 0 / 0.6677 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1663, allocations: 4 kB / 0.6677 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.1663, allocations: 4 kB / 0.6677 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.645e-05/0.1664, allocations: 19.98 kB / 0.6677 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001897/0.1666, allocations: 169.6 kB / 0.6679 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.1667, allocations: 58.5 kB / 0.6679 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.512e-05/0.1667, allocations: 28.84 kB / 0.6679 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005275/0.1673, allocations: 0.5583 MB / 0.6685 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.1673, allocations: 34.5 kB / 0.6685 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.1673, allocations: 0 / 0.6685 GB, free: 1.582 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.02016/0.1875, allocations: 4.315 MB / 0.6727 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.1875, allocations: 51.41 kB / 0.6728 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.44e-05/0.1876, allocations: 97.86 kB / 0.6729 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.367e-05/0.1877, allocations: 29.69 kB / 0.6729 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.1877, allocations: 80.27 kB / 0.673 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.1879, allocations: 71.38 kB / 0.673 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.1881, allocations: 89.67 kB / 0.6731 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1883, allocations: 326.7 kB / 0.6734 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005591/0.1888, allocations: 307.9 kB / 0.6737 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005607/0.1894, allocations: 311.8 kB / 0.674 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001597/0.191, allocations: 0.76 MB / 0.6748 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.191, allocations: 0 / 0.6748 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001655/0.1927, allocations: 0.7844 MB / 0.6755 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.1927, allocations: 12 kB / 0.6756 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1927, allocations: 0 / 0.6756 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1928, allocations: 0 / 0.6756 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008416/0.1936, allocations: 95.88 kB / 0.6756 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.1936, allocations: 0 / 0.6756 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005531/0.1942, allocations: 8 kB / 0.6757 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/0.1943, allocations: 39.97 kB / 0.6757 GB, free: 10.04 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.0001859/0.1945, allocations: 117.8 kB / 0.6758 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-05/0.1946, allocations: 3.953 kB / 0.6758 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.1979, allocations: 1.392 MB / 0.6772 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.1979, allocations: 4 kB / 0.6772 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1979, allocations: 4 kB / 0.6772 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.198, allocations: 7.984 kB / 0.6772 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.2011, allocations: 1.81 MB / 0.6789 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2011, allocations: 0 / 0.6789 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008052/0.2019, allocations: 107.9 kB / 0.6791 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.202, allocations: 0 / 0.6791 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.858e-05/0.2021, allocations: 27.94 kB / 0.6791 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.037e-05/0.2021, allocations: 7.984 kB / 0.6791 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2021, allocations: 0 / 0.6791 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002533/0.2046, allocations: 1.458 MB / 0.6805 GB, free: 5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.2047, allocations: 89.05 kB / 0.6806 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.119e-05/0.2048, allocations: 15.92 kB / 0.6806 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005348/0.2053, allocations: 12 kB / 0.6806 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.2055, allocations: 39.97 kB / 0.6807 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.2056, allocations: 32 kB / 0.6807 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.761e-05/0.2056, allocations: 75.28 kB / 0.6808 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2056, allocations: 160 / 0.6808 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005664/0.2062, allocations: 183.7 kB / 0.6809 GB, free: 4.543 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.003261/0.2095, allocations: 2.115 MB / 0.683 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001367/0.2109, allocations: 0.7223 MB / 0.6837 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.2109, allocations: 4.062 kB / 0.6837 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007169/0.2116, allocations: 460 kB / 0.6842 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.2119, allocations: 15.94 kB / 0.6842 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00809/0.22, allocations: 3.707 MB / 0.6878 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.2204, allocations: 0.7181 MB / 0.6885 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001023/0.2215, allocations: 293.5 kB / 0.6888 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005937/0.2221, allocations: 119.4 kB / 0.6889 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of SimCode: time 8.31e-07/0.2221, allocations: 0 / 0.6889 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.2609, allocations: 12.67 MB / 0.7013 GB, free: 15.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.115/8.376, allocations: 12.06 kB / 0.7013 GB, free: 15.75 MB / 0.545 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)