Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 81.5 kB / 19.44 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002202/0.002202, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.577/1.577, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 1.369/1.369, allocations: 154.8 MB / 414.3 MB, free: 476 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 178] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.5199 GB, free: 2.113 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.91e-05, allocations: 2.312 kB / 0.5199 GB, free: 2.109 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00175/0.001779, allocations: 0.6246 MB / 0.5205 GB, free: 1.508 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.003935, allocations: 1.324 MB / 0.5218 GB, free: 172 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.62e-05/0.003962, allocations: 1.219 kB / 0.5218 GB, free: 172 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.003978, allocations: 0 / 0.5218 GB, free: 172 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.051e-05/0.004008, allocations: 3.938 kB / 0.5218 GB, free: 168 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.004465, allocations: 76.3 kB / 0.5219 GB, free: 92 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.033e-05/0.004536, allocations: 29.72 kB / 0.5219 GB, free: 64 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.427e-05/0.00457, allocations: 0 / 0.5219 GB, free: 64 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.949e-05/0.004619, allocations: 15.98 kB / 0.5219 GB, free: 48 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.221e-05/0.004692, allocations: 11.97 kB / 0.522 GB, free: 36 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.004709, allocations: 4 kB / 0.522 GB, free: 32 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003347/0.005044, allocations: 113.4 kB / 0.5221 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/0.005061, allocations: 3.938 kB / 0.5221 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.888e-05/0.00509, allocations: 11.98 kB / 0.5221 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.005311, allocations: 83.77 kB / 0.5222 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.005314, allocations: 1.281 kB / 0.5222 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.61e-07/0.005314, allocations: 0 / 0.5222 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.261e-06/0.005321, allocations: 7.984 kB / 0.5222 GB, free: 15.82 MB / 0.4948 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.000545/0.005866, allocations: 376.7 kB / 0.5225 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.005903, allocations: 8.781 kB / 0.5225 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.079e-05/0.005954, allocations: 4.938 kB / 0.5225 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.006282, allocations: 126 kB / 0.5227 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.006297, allocations: 4.375 kB / 0.5227 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.006325, allocations: 8.375 kB / 0.5227 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/0.006483, allocations: 73.08 kB / 0.5227 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.006494, allocations: 192 / 0.5227 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.006507, allocations: 4.375 kB / 0.5227 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.006515, allocations: 11.56 kB / 0.5228 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.715e-05/0.006603, allocations: 23.91 kB / 0.5228 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001979/0.006801, allocations: 120.6 kB / 0.5229 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.006949, allocations: 63.05 kB / 0.523 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.2e-05/0.007001, allocations: 23.67 kB / 0.523 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003118/0.007312, allocations: 39.97 kB / 0.523 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.007352, allocations: 33.39 kB / 0.523 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.007353, allocations: 0.5625 kB / 0.523 GB, free: 14.79 MB / 0.4948 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.02304/0.03039, allocations: 6.015 MB / 0.5289 GB, free: 8.762 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.03044, allocations: 55.41 kB / 0.529 GB, free: 8.695 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.03056, allocations: 154.5 kB / 0.5291 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.858e-05/0.03064, allocations: 34.64 kB / 0.5292 GB, free: 8.488 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.03071, allocations: 126.9 kB / 0.5293 GB, free: 8.359 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.03085, allocations: 60.42 kB / 0.5293 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/0.03115, allocations: 107.3 kB / 0.5294 GB, free: 8.188 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004976/0.03165, allocations: 496.1 kB / 0.5299 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000867/0.03251, allocations: 0.5481 MB / 0.5304 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008619/0.03338, allocations: 0.5605 MB / 0.531 GB, free: 6.586 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.0356, allocations: 1.265 MB / 0.5322 GB, free: 5.316 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.0356, allocations: 0 / 0.5322 GB, free: 5.316 MB / 0.4948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002407/0.038, allocations: 1.317 MB / 0.5335 GB, free: 3.996 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.03802, allocations: 4 kB / 0.5335 GB, free: 3.992 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.03803, allocations: 0 / 0.5335 GB, free: 3.992 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.03805, allocations: 4 kB / 0.5335 GB, free: 3.988 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009476/0.039, allocations: 91.94 kB / 0.5336 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.03901, allocations: 1.406 kB / 0.5336 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005775/0.03959, allocations: 8 kB / 0.5336 GB, free: 3.891 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.379e-05/0.03968, allocations: 32.06 kB / 0.5336 GB, free: 3.859 MB / 0.4948 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.0002483/0.03993, allocations: 165.1 kB / 0.5338 GB, free: 3.688 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.04007, allocations: 21.3 kB / 0.5338 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/0.04383, allocations: 1.515 MB / 0.5353 GB, free: 2.227 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.04384, allocations: 4 kB / 0.5353 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.04384, allocations: 0 / 0.5353 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.04385, allocations: 0 / 0.5353 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.0477, allocations: 1.856 MB / 0.5371 GB, free: 336 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.04771, allocations: 0 / 0.5371 GB, free: 336 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008835/0.04859, allocations: 107.9 kB / 0.5372 GB, free: 228 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.04859, allocations: 0 / 0.5372 GB, free: 228 kB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-05/0.04867, allocations: 31.94 kB / 0.5373 GB, free: 196 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.04868, allocations: 3.984 kB / 0.5373 GB, free: 192 kB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.04868, allocations: 4 kB / 0.5373 GB, free: 188 kB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003021/0.0517, allocations: 1.68 MB / 0.5389 GB, free: 14.47 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 2.431e-05/0.05173, allocations: 23.91 kB / 0.5389 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.05184, allocations: 7.984 kB / 0.5389 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.05239, allocations: 12 kB / 0.5389 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.05256, allocations: 43.95 kB / 0.539 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.164e-05/0.05264, allocations: 28 kB / 0.539 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 7.602e-05/0.05272, allocations: 123.2 kB / 0.5391 GB, free: 14.24 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9e-08/0.05272, allocations: 0 / 0.5391 GB, free: 14.24 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0006599/0.05338, allocations: 187.6 kB / 0.5393 GB, free: 14.05 MB / 0.5105 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.0006004/0.05398, allocations: 254.5 kB / 0.5396 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00181/0.05579, allocations: 1.046 MB / 0.5406 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.05579, allocations: 0 / 0.5406 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000841/0.05663, allocations: 495.9 kB / 0.541 GB, free: 12.26 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.05699, allocations: 38.34 kB / 0.5411 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.06094, allocations: 0.8579 MB / 0.5419 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001124/0.06105, allocations: 99.31 kB / 0.542 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0011/0.06215, allocations: 293.5 kB / 0.5423 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005919/0.06275, allocations: 92.47 kB / 0.5424 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of SimCode: time 8.51e-07/0.06275, allocations: 4 kB / 0.5424 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of Templates: time 0.0218/0.08455, allocations: 12.25 MB / 0.5544 GB, free: 14.7 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.375729528954253]