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.001291/0.001291, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001358/0.001358, allocations: 191.4 kB / 16.25 MB, free: 6.621 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.313/1.313, allocations: 222.9 MB / 239.9 MB, free: 4.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7116/0.7116, allocations: 132.2 MB / 422.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.94 kB / 0.5014 GB, free: 9.023 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1463, allocations: 80.21 MB / 0.5797 GB, free: 9.031 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001647/0.148, allocations: 0.6652 MB / 0.5804 GB, free: 8.363 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1494, allocations: 1.265 MB / 0.5816 GB, free: 7.082 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.939e-05/0.1494, allocations: 0 / 0.5816 GB, free: 7.082 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.569e-05/0.1494, allocations: 3.938 kB / 0.5816 GB, free: 7.078 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.216e-05/0.1494, allocations: 0 / 0.5816 GB, free: 7.078 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.1498, allocations: 63.86 kB / 0.5817 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.581e-05/0.1498, allocations: 15.98 kB / 0.5817 GB, free: 7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.961e-05/0.1499, allocations: 4 kB / 0.5817 GB, free: 6.996 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.2e-05/0.1499, allocations: 19.92 kB / 0.5817 GB, free: 6.977 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.15, allocations: 19.91 kB / 0.5817 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.15, allocations: 4 kB / 0.5817 GB, free: 6.953 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.1502, allocations: 95.83 kB / 0.5818 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.317e-05/0.1502, allocations: 7.938 kB / 0.5818 GB, free: 6.852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.096e-05/0.1502, allocations: 11.94 kB / 0.5818 GB, free: 6.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.1503, allocations: 63.84 kB / 0.5819 GB, free: 6.777 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1503, allocations: 0 / 0.5819 GB, free: 6.777 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1504, allocations: 0 / 0.5819 GB, free: 6.777 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.1504, allocations: 0 / 0.5819 GB, free: 6.777 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.0003966/0.1508, allocations: 351.8 kB / 0.5822 GB, free: 6.387 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1508, allocations: 12.03 kB / 0.5822 GB, free: 6.375 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.25e-05/0.1508, allocations: 34.73 kB / 0.5823 GB, free: 6.332 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.66e-05/0.1509, allocations: 4.938 kB / 0.5823 GB, free: 6.328 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.313e-05/0.151, allocations: 168.3 kB / 0.5824 GB, free: 6.125 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.151, allocations: 384 / 0.5824 GB, free: 6.125 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.151, allocations: 4.375 kB / 0.5824 GB, free: 6.121 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.1511, allocations: 65.77 kB / 0.5825 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1512, allocations: 7.938 kB / 0.5825 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.1512, allocations: 0 / 0.5825 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1512, allocations: 4 kB / 0.5825 GB, free: 6.039 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.917e-05/0.1512, allocations: 19.98 kB / 0.5825 GB, free: 6.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.1514, allocations: 165.6 kB / 0.5827 GB, free: 5.809 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.1515, allocations: 62.53 kB / 0.5828 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.782e-05/0.1515, allocations: 24.86 kB / 0.5828 GB, free: 5.711 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004191/0.152, allocations: 0.5622 MB / 0.5833 GB, free: 5.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.152, allocations: 38.44 kB / 0.5834 GB, free: 4.973 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.152, allocations: 3.938 kB / 0.5834 GB, free: 4.969 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.01926/0.1713, allocations: 4.292 MB / 0.5876 GB, free: 0.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.1713, allocations: 55.41 kB / 0.5876 GB, free: 488 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.229e-05/0.1714, allocations: 93.8 kB / 0.5877 GB, free: 384 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.372e-05/0.1715, allocations: 33.7 kB / 0.5877 GB, free: 344 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.9e-05/0.1715, allocations: 80.14 kB / 0.5878 GB, free: 260 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1716, allocations: 63.2 kB / 0.5879 GB, free: 196 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.1719, allocations: 93.67 kB / 0.588 GB, free: 96 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.172, allocations: 322.8 kB / 0.5883 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004704/0.1725, allocations: 307.9 kB / 0.5886 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.173, allocations: 310.1 kB / 0.5889 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.1743, allocations: 0.7546 MB / 0.5896 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.1743, allocations: 0 / 0.5896 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001416/0.1758, allocations: 0.7922 MB / 0.5904 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1758, allocations: 4 kB / 0.5904 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1758, allocations: 8 kB / 0.5904 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1758, allocations: 0 / 0.5904 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007512/0.1766, allocations: 91.94 kB / 0.5905 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1766, allocations: 3.938 kB / 0.5905 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.1771, allocations: 16 kB / 0.5905 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-05/0.1771, allocations: 27.98 kB / 0.5905 GB, free: 13.46 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.0001869/0.1773, allocations: 130.4 kB / 0.5906 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.1774, allocations: 7.906 kB / 0.5906 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003098/0.1805, allocations: 1.392 MB / 0.592 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.1805, allocations: 4 kB / 0.592 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1805, allocations: 0 / 0.592 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1806, allocations: 0 / 0.592 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002585/0.1831, allocations: 1.813 MB / 0.5938 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1832, allocations: 0 / 0.5938 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007354/0.1839, allocations: 107.9 kB / 0.5939 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/0.1839, allocations: 4 kB / 0.5939 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.281e-05/0.184, allocations: 27.94 kB / 0.5939 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.184, allocations: 8.031 kB / 0.5939 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.184, allocations: 0 / 0.5939 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.1862, allocations: 1.461 MB / 0.5953 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.1862, allocations: 88.95 kB / 0.5954 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.4e-05/0.1863, allocations: 11.94 kB / 0.5954 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004702/0.1868, allocations: 12 kB / 0.5954 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.1869, allocations: 48.02 kB / 0.5955 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.869e-05/0.187, allocations: 28 kB / 0.5955 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.681e-05/0.1871, allocations: 79.22 kB / 0.5956 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1871, allocations: 4 kB / 0.5956 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005234/0.1876, allocations: 180 kB / 0.5958 GB, free: 7.957 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.002694/0.1903, allocations: 2.103 MB / 0.5978 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0012/0.1915, allocations: 0.7462 MB / 0.5986 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1915, allocations: 0 / 0.5986 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005974/0.1921, allocations: 451.8 kB / 0.599 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.1924, allocations: 17.89 kB / 0.599 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006777/0.1992, allocations: 3.755 MB / 0.6027 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.1995, allocations: 0.718 MB / 0.6034 GB, free: 40 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.1956/0.395, allocations: 290.8 kB / 0.6036 GB, free: 56.66 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000535/0.3956, allocations: 117.4 kB / 0.6038 GB, free: 56.65 MB / 0.4981 GB Notification: Performance of SimCode: time 6.61e-07/0.3956, allocations: 4 kB / 0.6038 GB, free: 56.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2439/0.6396, allocations: 12.52 MB / 0.616 GB, free: 55.97 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000134/0.6397, allocations: 215.1 kB / 0.6162 GB, free: 55.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.441, allocations: 0 / 0.6162 GB, free: 55.72 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)