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.006215/0.006216, allocations: 99.28 kB / 15.73 MB, free: 5.949 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.001401/0.001401, allocations: 197.1 kB / 16.68 MB, free: 5.875 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.819/0.819, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 64.41 kB / 0.5814 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1959, allocations: 80.21 MB / 0.6597 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002322/0.1983, allocations: 0.6098 MB / 0.6603 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002161/0.2005, allocations: 1.27 MB / 0.6616 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.351e-05/0.2006, allocations: 4 kB / 0.6616 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.2006, allocations: 3.938 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.124e-05/0.2007, allocations: 3.938 kB / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.2012, allocations: 71.78 kB / 0.6616 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.92e-05/0.2013, allocations: 27.86 kB / 0.6617 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.877e-05/0.2014, allocations: 7.984 kB / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.974e-05/0.2014, allocations: 8 kB / 0.6617 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.888e-05/0.2015, allocations: 15.91 kB / 0.6617 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.2015, allocations: 4 kB / 0.6617 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.2018, allocations: 95.91 kB / 0.6618 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.287e-05/0.2018, allocations: 7.984 kB / 0.6618 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.2019, allocations: 11.92 kB / 0.6618 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.2021, allocations: 63.86 kB / 0.6619 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.2021, allocations: 0 / 0.6619 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.675e-06/0.2021, allocations: 0 / 0.6619 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.463e-06/0.2021, allocations: 0 / 0.6619 GB, free: 7.988 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.0006349/0.2028, allocations: 351.5 kB / 0.6622 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.2028, allocations: 12.03 kB / 0.6622 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.2029, allocations: 8.844 kB / 0.6622 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.2032, allocations: 164.3 kB / 0.6624 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.2032, allocations: 4.375 kB / 0.6624 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.2032, allocations: 4.375 kB / 0.6624 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.2034, allocations: 53.98 kB / 0.6624 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2034, allocations: 4 kB / 0.6624 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.2034, allocations: 7.922 kB / 0.6625 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.2035, allocations: 0 / 0.6625 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.446e-05/0.2035, allocations: 23.98 kB / 0.6625 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003073/0.2039, allocations: 165.7 kB / 0.6626 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.204, allocations: 66.48 kB / 0.6627 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.87e-05/0.2041, allocations: 24.86 kB / 0.6627 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007777/0.2049, allocations: 0.5544 MB / 0.6633 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.2049, allocations: 50.5 kB / 0.6633 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.2049, allocations: 0 / 0.6633 GB, free: 6.223 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.02025/0.2252, allocations: 4.292 MB / 0.6675 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.2253, allocations: 59.31 kB / 0.6676 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.736e-05/0.2253, allocations: 93.86 kB / 0.6676 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.671e-05/0.2254, allocations: 29.7 kB / 0.6677 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.2255, allocations: 80.14 kB / 0.6678 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.2256, allocations: 59.23 kB / 0.6678 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.2259, allocations: 89.67 kB / 0.6679 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2261, allocations: 322.8 kB / 0.6682 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005468/0.2266, allocations: 311.8 kB / 0.6685 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005485/0.2272, allocations: 316 kB / 0.6688 GB, free: 428 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.2288, allocations: 0.7567 MB / 0.6695 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2288, allocations: 0 / 0.6695 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001649/0.2305, allocations: 0.7865 MB / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.2305, allocations: 4 kB / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.2305, allocations: 0 / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.2305, allocations: 0 / 0.6703 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008793/0.2314, allocations: 99.88 kB / 0.6704 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.2314, allocations: 0 / 0.6704 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000551/0.232, allocations: 8 kB / 0.6704 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-05/0.2321, allocations: 35.98 kB / 0.6704 GB, free: 14.72 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.0002158/0.2323, allocations: 126.6 kB / 0.6706 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.417e-05/0.2324, allocations: 7.906 kB / 0.6706 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003265/0.2357, allocations: 1.392 MB / 0.6719 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.2357, allocations: 4 kB / 0.6719 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2357, allocations: 0 / 0.6719 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2357, allocations: 0 / 0.6719 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003058/0.2388, allocations: 1.802 MB / 0.6737 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.2388, allocations: 4 kB / 0.6737 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008299/0.2397, allocations: 107.9 kB / 0.6738 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/0.2397, allocations: 4 kB / 0.6738 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.587e-05/0.2398, allocations: 31.94 kB / 0.6738 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.2398, allocations: 4.031 kB / 0.6738 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.308e-06/0.2398, allocations: 0 / 0.6738 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.2422, allocations: 1.459 MB / 0.6753 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.2423, allocations: 96.89 kB / 0.6754 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.876e-05/0.2424, allocations: 15.86 kB / 0.6754 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005361/0.243, allocations: 12 kB / 0.6754 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.2431, allocations: 48.02 kB / 0.6754 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.898e-05/0.2432, allocations: 28 kB / 0.6755 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.087e-05/0.2432, allocations: 79.28 kB / 0.6755 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2433, allocations: 0 / 0.6755 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00059/0.2438, allocations: 172 kB / 0.6757 GB, free: 9.223 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.0005774/0.2444, allocations: 215.1 kB / 0.6759 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001305/0.2457, allocations: 0.7238 MB / 0.6766 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2458, allocations: 4.094 kB / 0.6766 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.2464, allocations: 455.7 kB / 0.677 GB, free: 7.832 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.2468, allocations: 13.2 kB / 0.6771 GB, free: 7.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.2504, allocations: 0.8092 MB / 0.6779 GB, free: 6.984 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.2507, allocations: 0.722 MB / 0.6786 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001044/0.2518, allocations: 293.5 kB / 0.6788 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000578/0.2524, allocations: 91.41 kB / 0.6789 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of SimCode: time 6.81e-07/0.2524, allocations: 8 kB / 0.6789 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of Templates: time 0.01888/0.2713, allocations: 11.21 MB / 0.6899 GB, free: 10.72 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)