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: translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 102 kB / 16.35 MB, free: 5.824 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.001228/0.001228, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7861/0.7861, allocations: 132.2 MB / 423.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 59.91 kB / 0.5032 GB, free: 10.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3819, allocations: 80.19 MB / 0.5815 GB, free: 27.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001592/0.3835, allocations: 0.6097 MB / 0.5821 GB, free: 27.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3847, allocations: 1.277 MB / 0.5833 GB, free: 26.35 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.412e-05/0.3847, allocations: 2.594 kB / 0.5833 GB, free: 26.35 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.387e-05/0.3847, allocations: 0 / 0.5833 GB, free: 26.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.534e-05/0.3848, allocations: 0 / 0.5833 GB, free: 26.35 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.3851, allocations: 73.36 kB / 0.5834 GB, free: 26.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.811e-05/0.3851, allocations: 18.64 kB / 0.5834 GB, free: 26.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.3852, allocations: 10.48 kB / 0.5834 GB, free: 26.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.982e-05/0.3852, allocations: 15.16 kB / 0.5835 GB, free: 26.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.532e-05/0.3853, allocations: 19.84 kB / 0.5835 GB, free: 26.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.3853, allocations: 2.406 kB / 0.5835 GB, free: 26.26 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.3855, allocations: 91.31 kB / 0.5836 GB, free: 26.22 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.34e-05/0.3855, allocations: 9.234 kB / 0.5836 GB, free: 26.21 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.123e-05/0.3855, allocations: 17.7 kB / 0.5836 GB, free: 26.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.3856, allocations: 61.27 kB / 0.5837 GB, free: 26.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3856, allocations: 0 / 0.5837 GB, free: 26.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3856, allocations: 1.531 kB / 0.5837 GB, free: 26.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3857, allocations: 0 / 0.5837 GB, free: 26.16 MB / 446.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.0003339/0.386, allocations: 349.3 kB / 0.584 GB, free: 25.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.386, allocations: 9.906 kB / 0.584 GB, free: 25.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.993e-05/0.3861, allocations: 2.344 kB / 0.584 GB, free: 25.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.933e-05/0.3861, allocations: 171.4 kB / 0.5842 GB, free: 25.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.3861, allocations: 3 kB / 0.5842 GB, free: 25.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.3862, allocations: 4.25 kB / 0.5842 GB, free: 25.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.3863, allocations: 61.64 kB / 0.5842 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3863, allocations: 9.219 kB / 0.5842 GB, free: 25.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.3863, allocations: 0 / 0.5842 GB, free: 25.53 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3863, allocations: 1.094 kB / 0.5842 GB, free: 25.53 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.217e-05/0.3864, allocations: 22.89 kB / 0.5843 GB, free: 25.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001107/0.3865, allocations: 174 kB / 0.5844 GB, free: 25.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.3866, allocations: 58.66 kB / 0.5845 GB, free: 25.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.647e-05/0.3867, allocations: 27.61 kB / 0.5845 GB, free: 25.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000308/0.387, allocations: 0.5582 MB / 0.5851 GB, free: 24.58 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.387, allocations: 36.53 kB / 0.5851 GB, free: 24.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.387, allocations: 0 / 0.5851 GB, free: 24.54 MB / 446.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.01814/0.4052, allocations: 4.302 MB / 0.5893 GB, free: 22.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.4052, allocations: 51.41 kB / 0.5893 GB, free: 21.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.087e-05/0.4053, allocations: 93.86 kB / 0.5894 GB, free: 21.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.461e-05/0.4053, allocations: 29.7 kB / 0.5895 GB, free: 21.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.261e-05/0.4054, allocations: 84.12 kB / 0.5895 GB, free: 21.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.042e-05/0.4054, allocations: 55.17 kB / 0.5896 GB, free: 21.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.4057, allocations: 92.45 kB / 0.5897 GB, free: 21.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.187e-05/0.4057, allocations: 322.8 kB / 0.59 GB, free: 21.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003962/0.4061, allocations: 307.9 kB / 0.5903 GB, free: 20.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.4065, allocations: 307.9 kB / 0.5906 GB, free: 20.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.4077, allocations: 0.757 MB / 0.5913 GB, free: 19.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.4077, allocations: 3.562 kB / 0.5913 GB, free: 19.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001234/0.4089, allocations: 0.7941 MB / 0.5921 GB, free: 19.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.409, allocations: 6.969 kB / 0.5921 GB, free: 19.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.409, allocations: 0.9375 kB / 0.5921 GB, free: 19.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.409, allocations: 0 / 0.5921 GB, free: 19.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007163/0.4097, allocations: 91.94 kB / 0.5922 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.4098, allocations: 4 kB / 0.5922 GB, free: 19.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004267/0.4102, allocations: 11.94 kB / 0.5922 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.017e-05/0.4103, allocations: 35.97 kB / 0.5922 GB, free: 18.98 MB / 446.1 MB 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.0001576/0.4104, allocations: 125.9 kB / 0.5924 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.907e-05/0.4105, allocations: 7.906 kB / 0.5924 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.4129, allocations: 1.392 MB / 0.5937 GB, free: 17.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.4129, allocations: 7.938 kB / 0.5937 GB, free: 17.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4129, allocations: 4 kB / 0.5937 GB, free: 17.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.413, allocations: 3.984 kB / 0.5937 GB, free: 17.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.4152, allocations: 1.791 MB / 0.5955 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.4152, allocations: 4 kB / 0.5955 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006778/0.4159, allocations: 107.9 kB / 0.5956 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4159, allocations: 0 / 0.5956 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.854e-05/0.416, allocations: 31.94 kB / 0.5956 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.416, allocations: 3.938 kB / 0.5956 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.416, allocations: 8.016 kB / 0.5956 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.4178, allocations: 1.451 MB / 0.597 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.133e-05/0.4178, allocations: 96.83 kB / 0.5971 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.359e-05/0.4179, allocations: 19.92 kB / 0.5972 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004462/0.4184, allocations: 12 kB / 0.5972 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.4185, allocations: 39.97 kB / 0.5972 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.749e-05/0.4186, allocations: 32.06 kB / 0.5972 GB, free: 13.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.764e-05/0.4186, allocations: 75.28 kB / 0.5973 GB, free: 13.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4186, allocations: 0 / 0.5973 GB, free: 13.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004899/0.4191, allocations: 180 kB / 0.5975 GB, free: 13.48 MB / 446.1 MB 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.0004032/0.4195, allocations: 211.1 kB / 0.5977 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009421/0.4205, allocations: 0.7262 MB / 0.5984 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4205, allocations: 0 / 0.5984 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004895/0.421, allocations: 460.1 kB / 0.5988 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.4213, allocations: 12 kB / 0.5988 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/0.4241, allocations: 0.805 MB / 0.5996 GB, free: 11.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.4243, allocations: 0.7181 MB / 0.6003 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009032/0.4252, allocations: 297.6 kB / 0.6006 GB, free: 10.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.4257, allocations: 91.41 kB / 0.6007 GB, free: 10.12 MB / 446.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4257, allocations: 0 / 0.6007 GB, free: 10.12 MB / 446.1 MB Notification: Performance of Templates: time 0.01246/0.4382, allocations: 11.18 MB / 0.6116 GB, free: 15.01 MB / 462.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)