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.0009842/0.0009845, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009846/0.0009846, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.321/1.321, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7298/0.7298, allocations: 132.2 MB / 422.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 63.97 kB / 0.5012 GB, free: 9.129 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1471, allocations: 80.21 MB / 0.5795 GB, free: 9.137 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001627/0.1488, allocations: 0.6726 MB / 0.5802 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.1502, allocations: 1.273 MB / 0.5814 GB, free: 7.176 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.384e-05/0.1502, allocations: 11.94 kB / 0.5814 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.1502, allocations: 0 / 0.5814 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.158e-05/0.1503, allocations: 0 / 0.5814 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.1506, allocations: 51.88 kB / 0.5815 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.874e-05/0.1506, allocations: 19.98 kB / 0.5815 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.1507, allocations: 0 / 0.5815 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.184e-05/0.1507, allocations: 11.92 kB / 0.5815 GB, free: 7.082 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.1507, allocations: 23.91 kB / 0.5815 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.1508, allocations: 0 / 0.5815 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.151, allocations: 103.8 kB / 0.5816 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.456e-05/0.151, allocations: 4 kB / 0.5816 GB, free: 6.953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.64e-05/0.151, allocations: 11.94 kB / 0.5816 GB, free: 6.941 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.1512, allocations: 63.84 kB / 0.5817 GB, free: 6.879 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1512, allocations: 0 / 0.5817 GB, free: 6.879 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.1512, allocations: 0 / 0.5817 GB, free: 6.879 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1512, allocations: 0 / 0.5817 GB, free: 6.879 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.0003944/0.1516, allocations: 343.8 kB / 0.582 GB, free: 6.496 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1516, allocations: 19.95 kB / 0.5821 GB, free: 6.477 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.1517, allocations: 38.75 kB / 0.5821 GB, free: 6.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.1517, allocations: 4.938 kB / 0.5821 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.51e-05/0.1518, allocations: 164.3 kB / 0.5823 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.1518, allocations: 384 / 0.5823 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.1518, allocations: 8.375 kB / 0.5823 GB, free: 6.219 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.152, allocations: 61.72 kB / 0.5823 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.152, allocations: 3.906 kB / 0.5823 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.152, allocations: 4 kB / 0.5823 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.152, allocations: 4 kB / 0.5823 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.882e-05/0.1521, allocations: 23.98 kB / 0.5824 GB, free: 6.117 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.1522, allocations: 165.7 kB / 0.5825 GB, free: 5.906 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.1523, allocations: 58.55 kB / 0.5826 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.872e-05/0.1524, allocations: 20.86 kB / 0.5826 GB, free: 5.816 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004342/0.1528, allocations: 0.5622 MB / 0.5831 GB, free: 5.125 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.1529, allocations: 42.44 kB / 0.5832 GB, free: 5.074 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.1529, allocations: 0 / 0.5832 GB, free: 5.074 MB / 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.01974/0.1726, allocations: 4.292 MB / 0.5874 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.1727, allocations: 59.41 kB / 0.5874 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.373e-05/0.1727, allocations: 93.86 kB / 0.5875 GB, free: 488 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.742e-05/0.1728, allocations: 29.7 kB / 0.5875 GB, free: 452 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.813e-05/0.1728, allocations: 80.14 kB / 0.5876 GB, free: 368 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.173, allocations: 63.08 kB / 0.5877 GB, free: 304 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.1732, allocations: 93.67 kB / 0.5878 GB, free: 204 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1733, allocations: 322.8 kB / 0.5881 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005155/0.1739, allocations: 308 kB / 0.5884 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.1744, allocations: 315.8 kB / 0.5887 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.1758, allocations: 0.753 MB / 0.5894 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1758, allocations: 0 / 0.5894 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001479/0.1773, allocations: 0.7902 MB / 0.5902 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.1773, allocations: 10.5 kB / 0.5902 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1773, allocations: 0 / 0.5902 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.1773, allocations: 0 / 0.5902 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007676/0.1781, allocations: 95.94 kB / 0.5903 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1781, allocations: 0.9375 kB / 0.5903 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.1786, allocations: 8 kB / 0.5903 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.384e-05/0.1787, allocations: 43.92 kB / 0.5903 GB, free: 13.56 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.0001826/0.1789, allocations: 122.4 kB / 0.5904 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.179, allocations: 7.906 kB / 0.5905 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003111/0.1821, allocations: 1.388 MB / 0.5918 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1821, allocations: 4 kB / 0.5918 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.1821, allocations: 0 / 0.5918 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1821, allocations: 7.984 kB / 0.5918 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.1849, allocations: 1.809 MB / 0.5936 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1849, allocations: 7.938 kB / 0.5936 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.1856, allocations: 103.9 kB / 0.5937 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.1857, allocations: 4 kB / 0.5937 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.841e-05/0.1857, allocations: 27.94 kB / 0.5937 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.1857, allocations: 4 kB / 0.5937 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1857, allocations: 0 / 0.5937 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.188, allocations: 1.465 MB / 0.5952 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.912e-05/0.1881, allocations: 88.98 kB / 0.5952 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.664e-05/0.1882, allocations: 11.94 kB / 0.5953 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/0.1886, allocations: 8 kB / 0.5953 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.1888, allocations: 51.89 kB / 0.5953 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.001e-05/0.1889, allocations: 28 kB / 0.5953 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.319e-05/0.1889, allocations: 79.28 kB / 0.5954 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1889, allocations: 160 / 0.5954 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005777/0.1895, allocations: 180 kB / 0.5956 GB, free: 8.062 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.002855/0.1924, allocations: 2.107 MB / 0.5976 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001185/0.1936, allocations: 0.7229 MB / 0.5984 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1936, allocations: 8.062 kB / 0.5984 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.1942, allocations: 447.8 kB / 0.5988 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.1945, allocations: 17.38 kB / 0.5988 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00692/0.2015, allocations: 3.755 MB / 0.6025 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.2017, allocations: 0.7184 MB / 0.6032 GB, free: 168 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.2339/0.4356, allocations: 291.9 kB / 0.6034 GB, free: 54.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006275/0.4363, allocations: 117.3 kB / 0.6036 GB, free: 54.81 MB / 0.4981 GB Notification: Performance of SimCode: time 1.242e-06/0.4363, allocations: 1.156 kB / 0.6036 GB, free: 54.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.4564, allocations: 11.99 MB / 0.6153 GB, free: 54.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.4566, allocations: 215.1 kB / 0.6155 GB, free: 53.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/2.202, allocations: 1.641 kB / 0.6155 GB, free: 53.95 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)