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.001385/0.001384, allocations: 108.6 kB / 15.73 MB, free: 72 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.001388/0.001388, allocations: 183.2 kB / 16.66 MB, free: 6.602 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8085/0.8085, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 69.41 kB / 0.5809 GB, free: 1.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1516, allocations: 80.21 MB / 0.6592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001568/0.1532, allocations: 0.6015 MB / 0.6598 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1548, allocations: 1.279 MB / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.107e-05/0.1549, allocations: 0 / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.43e-05/0.1549, allocations: 3.938 kB / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.525e-05/0.1549, allocations: 4 kB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.1553, allocations: 67.73 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.879e-05/0.1553, allocations: 23.91 kB / 0.6612 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.529e-05/0.1554, allocations: 12 kB / 0.6612 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.11e-05/0.1554, allocations: 7.984 kB / 0.6612 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.527e-05/0.1555, allocations: 15.92 kB / 0.6612 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.1555, allocations: 4 kB / 0.6612 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.1557, allocations: 95.89 kB / 0.6613 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.1558, allocations: 4 kB / 0.6613 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.519e-05/0.1558, allocations: 15.91 kB / 0.6613 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.1559, allocations: 60.08 kB / 0.6614 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.1559, allocations: 0 / 0.6614 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of FrontEnd: time 5.951e-06/0.156, allocations: 4 kB / 0.6614 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.156, allocations: 11.88 kB / 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.0004546/0.1564, allocations: 351.3 kB / 0.6617 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1565, allocations: 8.031 kB / 0.6617 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.514e-05/0.1565, allocations: 34.75 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.1565, allocations: 8.891 kB / 0.6618 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.1567, allocations: 160.4 kB / 0.6619 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.1567, allocations: 4.375 kB / 0.6619 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.1567, allocations: 384 / 0.6619 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.1568, allocations: 61.8 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1568, allocations: 0 / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.1569, allocations: 4 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.1569, allocations: 3.938 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.312e-05/0.1569, allocations: 23.92 kB / 0.662 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.1571, allocations: 177.5 kB / 0.6622 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.1573, allocations: 62.56 kB / 0.6623 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.352e-05/0.1573, allocations: 24.86 kB / 0.6623 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005142/0.1578, allocations: 0.5583 MB / 0.6628 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.1579, allocations: 38.5 kB / 0.6629 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.1579, 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.01986/0.1778, allocations: 4.304 MB / 0.6671 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.1778, allocations: 55.34 kB / 0.6671 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.712e-05/0.1779, allocations: 93.86 kB / 0.6672 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/0.178, allocations: 29.7 kB / 0.6672 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.178, allocations: 80.14 kB / 0.6673 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1781, allocations: 67.55 kB / 0.6674 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.1784, allocations: 89.67 kB / 0.6675 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1785, allocations: 330.7 kB / 0.6678 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005491/0.1791, allocations: 303.9 kB / 0.6681 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005677/0.1797, allocations: 319.7 kB / 0.6684 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.1812, allocations: 0.7528 MB / 0.6691 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1812, allocations: 0 / 0.6691 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001597/0.1828, allocations: 0.7942 MB / 0.6699 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1829, allocations: 4 kB / 0.6699 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1829, allocations: 4 kB / 0.6699 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1829, allocations: 0 / 0.6699 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008263/0.1837, allocations: 91.94 kB / 0.67 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1837, allocations: 4 kB / 0.67 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005342/0.1843, allocations: 8 kB / 0.67 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.096e-05/0.1844, 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.0001858/0.1846, allocations: 126.4 kB / 0.6701 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.357e-05/0.1846, allocations: 4 kB / 0.6701 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/0.1879, allocations: 1.385 MB / 0.6715 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.1879, allocations: 8 kB / 0.6715 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1879, allocations: 0 / 0.6715 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1879, allocations: 7.984 kB / 0.6715 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002955/0.1909, allocations: 1.794 MB / 0.6733 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1909, allocations: 0 / 0.6733 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008021/0.1917, allocations: 115.9 kB / 0.6734 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1917, allocations: 0 / 0.6734 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/0.1918, allocations: 31.94 kB / 0.6734 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1918, allocations: 3.938 kB / 0.6734 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1918, allocations: 0 / 0.6734 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.1942, allocations: 1.463 MB / 0.6748 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.1943, allocations: 89.05 kB / 0.6749 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.161e-05/0.1944, allocations: 11.94 kB / 0.6749 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/0.1949, allocations: 11.98 kB / 0.6749 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.1951, allocations: 43.97 kB / 0.675 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.1952, allocations: 28 kB / 0.675 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.905e-05/0.1952, allocations: 79.28 kB / 0.6751 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1952, allocations: 0 / 0.6751 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005585/0.1958, allocations: 179.8 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.003073/0.1989, allocations: 2.118 MB / 0.6773 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0013/0.2002, allocations: 0.7325 MB / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2002, allocations: 0 / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006844/0.2009, allocations: 459.8 kB / 0.6785 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.2012, allocations: 19.94 kB / 0.6785 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007629/0.2088, allocations: 3.7 MB / 0.6821 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.2092, allocations: 0.7142 MB / 0.6828 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001013/0.2102, allocations: 297.5 kB / 0.6831 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005771/0.2108, allocations: 119.4 kB / 0.6832 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.2108, allocations: 0 / 0.6832 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1838/0.3946, allocations: 12.66 MB / 0.6956 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.369/8.763, allocations: 5.719 kB / 0.6956 GB, free: 8.223 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 & /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)