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.0008473/0.0008474, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.0009227/0.0009227, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.163/1.163, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.664/0.664, allocations: 132.3 MB / 423.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002588, allocations: 12 kB / 0.5034 GB, free: 4.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3273, allocations: 81.58 MB / 0.5831 GB, free: 3.988 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0005367/0.3279, allocations: 339.8 kB / 0.5834 GB, free: 3.758 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.329, allocations: 1.22 MB / 0.5846 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.348e-05/0.329, allocations: 1.062 kB / 0.5846 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.136e-06/0.329, allocations: 0.5625 kB / 0.5846 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.238e-05/0.329, allocations: 2.312 kB / 0.5846 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002372/0.3293, allocations: 55.25 kB / 0.5847 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.361e-05/0.3293, allocations: 16.73 kB / 0.5847 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.09e-05/0.3293, allocations: 6.984 kB / 0.5847 GB, free: 2.828 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.779e-05/0.3294, allocations: 11.11 kB / 0.5847 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.32e-05/0.3294, allocations: 24.11 kB / 0.5847 GB, free: 2.809 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.508e-06/0.3294, allocations: 2.031 kB / 0.5847 GB, free: 2.809 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.3296, allocations: 89.34 kB / 0.5848 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.043e-05/0.3296, allocations: 10.42 kB / 0.5848 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.464e-05/0.3297, allocations: 27.92 kB / 0.5849 GB, free: 2.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.578e-05/0.3298, allocations: 43.53 kB / 0.5849 GB, free: 2.738 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3298, allocations: 0 / 0.5849 GB, free: 2.738 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3298, allocations: 0 / 0.5849 GB, free: 2.738 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.3298, allocations: 0.625 kB / 0.5849 GB, free: 2.738 MB / 430.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.0002733/0.3301, allocations: 346.1 kB / 0.5852 GB, free: 2.371 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.795e-05/0.3301, allocations: 10.09 kB / 0.5852 GB, free: 2.371 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.786e-05/0.3301, allocations: 2.641 kB / 0.5852 GB, free: 2.371 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.845e-05/0.3302, allocations: 166.8 kB / 0.5854 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.3302, allocations: 0.5938 kB / 0.5854 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.3302, allocations: 8.766 kB / 0.5854 GB, free: 2.168 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.649e-05/0.3303, allocations: 47.2 kB / 0.5855 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3303, allocations: 4.656 kB / 0.5855 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.3304, allocations: 4.938 kB / 0.5855 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.3304, allocations: 1.844 kB / 0.5855 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.744e-05/0.3304, allocations: 25.77 kB / 0.5855 GB, free: 2.117 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.3305, allocations: 173.9 kB / 0.5857 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.241e-05/0.3306, allocations: 56.62 kB / 0.5857 GB, free: 1.875 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.3307, allocations: 22.53 kB / 0.5857 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000277/0.331, allocations: 0.5628 MB / 0.5863 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.19e-05/0.331, allocations: 36.72 kB / 0.5863 GB, free: 1.156 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.011e-06/0.331, allocations: 0 / 0.5863 GB, free: 1.156 MB / 430.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.01572/0.3467, allocations: 4.203 MB / 0.5904 GB, free: 15.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.3468, allocations: 57.75 kB / 0.5905 GB, free: 15.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.171e-05/0.3469, allocations: 92.25 kB / 0.5906 GB, free: 15.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.225e-05/0.3469, allocations: 31.14 kB / 0.5906 GB, free: 15.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.759e-05/0.347, allocations: 84.69 kB / 0.5907 GB, free: 15.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3471, allocations: 62.64 kB / 0.5907 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.3472, allocations: 4 kB / 0.5907 GB, free: 15.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3473, allocations: 316.1 kB / 0.591 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005449/0.3478, allocations: 309.7 kB / 0.5913 GB, free: 14.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.3483, allocations: 312.9 kB / 0.5916 GB, free: 14.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.3491, allocations: 380.2 kB / 0.592 GB, free: 14.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3491, allocations: 0 / 0.592 GB, free: 14.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001466/0.3505, allocations: 0.786 MB / 0.5928 GB, free: 14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3506, allocations: 5.688 kB / 0.5928 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3506, allocations: 1 kB / 0.5928 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3506, allocations: 0.8125 kB / 0.5928 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006895/0.3513, allocations: 99.14 kB / 0.5929 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3513, allocations: 1.438 kB / 0.5929 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.3517, allocations: 9 kB / 0.5929 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.3517, allocations: 41.03 kB / 0.5929 GB, free: 13.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001552/0.3519, allocations: 115.8 kB / 0.593 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.271e-05/0.352, allocations: 11.44 kB / 0.593 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003163/0.3551, allocations: 1.403 MB / 0.5944 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.3552, allocations: 4.422 kB / 0.5944 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/0.3552, allocations: 7.891 kB / 0.5944 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.3552, allocations: 3.156 kB / 0.5944 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/0.3577, allocations: 1.79 MB / 0.5962 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3578, allocations: 0 / 0.5962 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006226/0.3584, allocations: 106.3 kB / 0.5963 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.3584, allocations: 2.688 kB / 0.5963 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.744e-05/0.3585, allocations: 30.75 kB / 0.5963 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3585, allocations: 5.375 kB / 0.5963 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3585, allocations: 5.906 kB / 0.5963 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.3606, allocations: 1.451 MB / 0.5977 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.3607, allocations: 98.53 kB / 0.5978 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.934e-05/0.3608, allocations: 6.5 kB / 0.5978 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003781/0.3611, allocations: 15.23 kB / 0.5978 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.3613, allocations: 38.34 kB / 0.5979 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.519e-05/0.3613, allocations: 36.62 kB / 0.5979 GB, free: 11.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.926e-05/0.3614, allocations: 77.02 kB / 0.598 GB, free: 11.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3614, allocations: 0 / 0.598 GB, free: 11.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005538/0.3619, allocations: 173.5 kB / 0.5982 GB, free: 11.14 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000428/0.3624, allocations: 219.2 kB / 0.5984 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.3635, allocations: 0.7212 MB / 0.5991 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3635, allocations: 0 / 0.5991 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006177/0.3642, allocations: 454 kB / 0.5995 GB, free: 10.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.3645, allocations: 16.91 kB / 0.5995 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.3671, allocations: 0.8485 MB / 0.6003 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.3674, allocations: 0.7191 MB / 0.601 GB, free: 9.414 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.3687, allocations: 293.1 kB / 0.6013 GB, free: 9.266 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004889/0.3692, allocations: 95.23 kB / 0.6014 GB, free: 9.254 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3692, allocations: 3.938 kB / 0.6014 GB, free: 9.25 MB / 446.1 MB Notification: Performance of Templates: time 0.01407/0.3833, allocations: 10.36 MB / 0.6115 GB, free: 2.945 MB / 446.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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)