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.006495/0.006495, allocations: 98.3 kB / 15.73 MB, free: 6.047 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.001389/0.001389, allocations: 199 kB / 16.68 MB, free: 5.969 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8219/0.8219, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 69.17 kB / 0.5809 GB, free: 1.086 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1798, allocations: 80.2 MB / 0.6592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001745/0.1816, allocations: 0.6101 MB / 0.6598 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001771/0.1834, allocations: 1.267 MB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.155e-05/0.1834, allocations: 0 / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.818e-05/0.1835, allocations: 3.938 kB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 1.904e-05/0.1835, allocations: 4 kB / 0.6611 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.184, allocations: 75.73 kB / 0.6612 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.13e-05/0.1841, allocations: 23.91 kB / 0.6612 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.457e-05/0.1841, allocations: 7.938 kB / 0.6612 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.341e-05/0.1841, allocations: 8 kB / 0.6612 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.173e-05/0.1842, allocations: 19.91 kB / 0.6612 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.1842, allocations: 4 kB / 0.6612 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.1845, allocations: 91.84 kB / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.088e-05/0.1845, allocations: 11.97 kB / 0.6613 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.587e-05/0.1845, allocations: 15.94 kB / 0.6613 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.1847, allocations: 60.08 kB / 0.6614 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1847, allocations: 0 / 0.6614 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.964e-06/0.1847, allocations: 0 / 0.6614 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.1847, allocations: 0 / 0.6614 GB, free: 11.75 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.0005078/0.1852, allocations: 351.3 kB / 0.6617 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1853, allocations: 12.03 kB / 0.6617 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.098e-05/0.1853, allocations: 30.75 kB / 0.6618 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.091e-05/0.1854, allocations: 8.891 kB / 0.6618 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.1855, allocations: 172.3 kB / 0.6619 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.1855, allocations: 4.375 kB / 0.6619 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.1855, allocations: 4.375 kB / 0.6619 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.1857, allocations: 57.75 kB / 0.662 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1857, allocations: 0 / 0.662 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.1857, allocations: 0 / 0.662 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1857, allocations: 4 kB / 0.662 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.902e-05/0.1858, allocations: 27.95 kB / 0.662 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002054/0.186, allocations: 173.6 kB / 0.6622 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.1861, allocations: 58.56 kB / 0.6623 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.027e-05/0.1862, allocations: 28.84 kB / 0.6623 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005454/0.1868, allocations: 0.5544 MB / 0.6628 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.1868, allocations: 38.44 kB / 0.6629 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.1868, allocations: 4 kB / 0.6629 GB, free: 9.941 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.2067, allocations: 4.305 MB / 0.6671 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.2068, allocations: 55.39 kB / 0.6671 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.187e-05/0.2068, allocations: 97.86 kB / 0.6672 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.2069, allocations: 33.64 kB / 0.6672 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.207, allocations: 80.14 kB / 0.6673 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.2071, allocations: 67.42 kB / 0.6674 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.2073, allocations: 85.67 kB / 0.6675 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2075, allocations: 326.8 kB / 0.6678 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005797/0.2081, allocations: 303.9 kB / 0.6681 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005349/0.2086, allocations: 315.8 kB / 0.6684 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.2101, allocations: 0.7569 MB / 0.6691 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.2101, allocations: 0 / 0.6691 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001654/0.2118, allocations: 0.7942 MB / 0.6699 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2118, allocations: 8 kB / 0.6699 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2119, allocations: 0 / 0.6699 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.2119, allocations: 0 / 0.6699 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/0.2127, allocations: 87.95 kB / 0.67 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2128, allocations: 0 / 0.67 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.2133, allocations: 12 kB / 0.67 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-05/0.2134, allocations: 35.97 kB / 0.67 GB, free: 2.422 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.0002143/0.2136, allocations: 130.4 kB / 0.6701 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.506e-05/0.2137, allocations: 0 / 0.6701 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.2169, allocations: 1.388 MB / 0.6715 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.2169, allocations: 4 kB / 0.6715 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.2169, allocations: 3.984 kB / 0.6715 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.217, allocations: 4 kB / 0.6715 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.2201, allocations: 1.802 MB / 0.6733 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2201, allocations: 0 / 0.6733 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008142/0.2209, allocations: 111.9 kB / 0.6734 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.2209, allocations: 0 / 0.6734 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.53e-05/0.221, allocations: 31.92 kB / 0.6734 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.221, allocations: 4 kB / 0.6734 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.221, allocations: 4.031 kB / 0.6734 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.2235, allocations: 1.455 MB / 0.6748 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.246e-05/0.2236, allocations: 89.05 kB / 0.6749 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.153e-05/0.2237, allocations: 15.94 kB / 0.6749 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.2243, allocations: 8 kB / 0.6749 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.2244, allocations: 47.91 kB / 0.675 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.582e-05/0.2245, allocations: 35.98 kB / 0.675 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.589e-05/0.2246, allocations: 79.28 kB / 0.6751 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2246, allocations: 0 / 0.6751 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005624/0.2251, allocations: 175.7 kB / 0.6753 GB, free: 12.93 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.003274/0.2284, allocations: 2.115 MB / 0.6773 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001339/0.2298, allocations: 0.736 MB / 0.6781 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2298, allocations: 0 / 0.6781 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007219/0.2305, allocations: 455.7 kB / 0.6785 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.2309, allocations: 16 kB / 0.6785 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008159/0.239, allocations: 3.699 MB / 0.6821 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.2394, allocations: 0.7182 MB / 0.6828 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001047/0.2404, allocations: 293.5 kB / 0.6831 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006114/0.2411, allocations: 119.4 kB / 0.6832 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.2411, allocations: 0 / 0.6832 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03811/0.2792, allocations: 12.67 MB / 0.6956 GB, free: 8.211 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.022/8.301, allocations: 13.22 kB / 0.6956 GB, free: 8.203 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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)