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.001199/0.001199, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001188/0.001188, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.321/1.321, 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.7582/0.7582, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 71.64 kB / 0.582 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1486, allocations: 80.22 MB / 0.6604 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001818/0.1505, allocations: 0.6031 MB / 0.661 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.1522, allocations: 1.278 MB / 0.6622 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.662e-05/0.1522, allocations: 0 / 0.6622 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.593e-05/0.1523, allocations: 0 / 0.6622 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.589e-05/0.1523, allocations: 7.938 kB / 0.6622 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005227/0.1528, allocations: 70.86 kB / 0.6623 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.892e-05/0.1529, allocations: 19.92 kB / 0.6623 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.585e-05/0.153, allocations: 11.92 kB / 0.6623 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.595e-05/0.153, allocations: 8 kB / 0.6623 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.832e-05/0.1531, allocations: 15.92 kB / 0.6624 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.1531, allocations: 4 kB / 0.6624 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.1534, allocations: 95.89 kB / 0.6624 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.1534, allocations: 0 / 0.6624 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.116e-05/0.1534, allocations: 19.91 kB / 0.6625 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.1536, allocations: 63.86 kB / 0.6625 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1536, allocations: 0 / 0.6625 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.408e-06/0.1536, allocations: 4 kB / 0.6625 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.1536, allocations: 0 / 0.6625 GB, free: 8.008 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.0005091/0.1541, allocations: 351.5 kB / 0.6629 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.1542, allocations: 11.97 kB / 0.6629 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.1542, allocations: 8.844 kB / 0.6629 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.1544, allocations: 164.4 kB / 0.663 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.1544, allocations: 4.375 kB / 0.663 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.831e-05/0.1544, allocations: 12.31 kB / 0.6631 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.1546, allocations: 53.98 kB / 0.6631 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1546, allocations: 0 / 0.6631 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.1546, allocations: 4 kB / 0.6631 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1546, allocations: 3.938 kB / 0.6631 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.152e-05/0.1547, allocations: 23.98 kB / 0.6631 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002059/0.1549, allocations: 169.6 kB / 0.6633 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.155, allocations: 62.5 kB / 0.6634 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.102e-05/0.1551, allocations: 20.86 kB / 0.6634 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000505/0.1556, allocations: 0.5622 MB / 0.6639 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.1556, allocations: 34.5 kB / 0.664 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.1556, allocations: 0 / 0.664 GB, free: 6.25 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.01987/0.1755, allocations: 4.295 MB / 0.6682 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.1756, allocations: 59.31 kB / 0.6682 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.189e-05/0.1757, allocations: 93.86 kB / 0.6683 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.324e-05/0.1758, allocations: 29.7 kB / 0.6683 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.11e-05/0.1758, allocations: 88.25 kB / 0.6684 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.1759, allocations: 47.27 kB / 0.6685 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.1762, allocations: 93.67 kB / 0.6686 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1763, allocations: 322.8 kB / 0.6689 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004954/0.1768, allocations: 307.9 kB / 0.6692 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004866/0.1773, allocations: 311.8 kB / 0.6694 GB, free: 456 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.1788, allocations: 0.7639 MB / 0.6702 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1788, allocations: 0 / 0.6702 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001482/0.1803, allocations: 0.7883 MB / 0.671 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1803, allocations: 8 kB / 0.671 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1803, allocations: 0 / 0.671 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1803, allocations: 0 / 0.671 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008852/0.1812, allocations: 99.88 kB / 0.6711 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.1812, allocations: 0 / 0.6711 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.1818, allocations: 8 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.077e-05/0.1819, allocations: 39.97 kB / 0.6711 GB, free: 14.73 MB / 0.5137 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.0001965/0.1821, allocations: 114.7 kB / 0.6712 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.1822, allocations: 11.91 kB / 0.6712 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/0.1853, allocations: 1.392 MB / 0.6726 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1853, allocations: 8 kB / 0.6726 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1853, allocations: 0 / 0.6726 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1853, allocations: 3.984 kB / 0.6726 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.1881, allocations: 1.802 MB / 0.6744 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1881, allocations: 0 / 0.6744 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008289/0.189, allocations: 107.9 kB / 0.6745 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.189, allocations: 4 kB / 0.6745 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.255e-05/0.1891, allocations: 27.94 kB / 0.6745 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.1891, allocations: 4 kB / 0.6745 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1891, allocations: 3.984 kB / 0.6745 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.1913, allocations: 1.459 MB / 0.6759 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/0.1914, allocations: 92.86 kB / 0.676 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.1915, allocations: 15.92 kB / 0.676 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.1921, allocations: 8 kB / 0.676 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.1922, allocations: 43.97 kB / 0.6761 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-05/0.1923, allocations: 28 kB / 0.6761 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.331e-05/0.1923, allocations: 83.34 kB / 0.6762 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.81e-07/0.1923, allocations: 0 / 0.6762 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005561/0.1929, allocations: 172 kB / 0.6764 GB, free: 9.246 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.0005244/0.1934, allocations: 215.1 kB / 0.6766 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001188/0.1946, allocations: 0.7223 MB / 0.6773 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1946, allocations: 4 kB / 0.6773 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006192/0.1953, allocations: 451.7 kB / 0.6777 GB, free: 7.859 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.1956, allocations: 16 kB / 0.6777 GB, free: 7.844 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003441/0.199, allocations: 0.8344 MB / 0.6785 GB, free: 6.977 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.1993, allocations: 0.7181 MB / 0.6792 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005458/0.1999, allocations: 99.34 kB / 0.6793 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of SimCode: time 6.91e-07/0.1999, allocations: 0 / 0.6793 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of Templates: time 0.01055/0.2104, allocations: 6.858 MB / 0.686 GB, free: 15.35 MB / 0.5294 GB 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)