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.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.0009572/0.0009572, allocations: 92.22 kB / 19.65 MB, free: 276 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.001628/0.001628, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.98/0.98, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.855/0.855, allocations: 154.6 MB / 414.5 MB, free: 0.6797 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 0.5204 GB, free: 2.137 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/3.041e-05, allocations: 2.312 kB / 0.5204 GB, free: 2.133 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001917/0.001947, allocations: 0.626 MB / 0.521 GB, free: 1.527 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.003989, allocations: 1.35 MB / 0.5223 GB, free: 168 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.78e-05/0.004027, allocations: 1.844 kB / 0.5223 GB, free: 168 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.438e-05/0.004051, allocations: 0 / 0.5223 GB, free: 168 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.389e-05/0.004075, allocations: 0 / 0.5223 GB, free: 168 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005135/0.004589, allocations: 87.59 kB / 0.5224 GB, free: 80 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.91e-05/0.004668, allocations: 21.89 kB / 0.5224 GB, free: 60 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.004716, allocations: 4 kB / 0.5224 GB, free: 56 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.337e-05/0.004759, allocations: 15.97 kB / 0.5224 GB, free: 40 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.947e-05/0.004838, allocations: 15.92 kB / 0.5225 GB, free: 24 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.004855, allocations: 0 / 0.5225 GB, free: 24 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003634/0.005218, allocations: 117.3 kB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.005234, allocations: 0 / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.005264, allocations: 11.98 kB / 0.5226 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.005468, allocations: 91.75 kB / 0.5227 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.005471, allocations: 0.9688 kB / 0.5227 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.142e-06/0.005472, allocations: 0 / 0.5227 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.005478, allocations: 0 / 0.5227 GB, free: 15.81 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.0004983/0.005976, allocations: 381.1 kB / 0.523 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.006024, allocations: 13.03 kB / 0.523 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.006081, allocations: 5.234 kB / 0.523 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.006194, allocations: 112.6 kB / 0.5232 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.006208, allocations: 1.344 kB / 0.5232 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.00625, allocations: 8.375 kB / 0.5232 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.006387, allocations: 76.44 kB / 0.5232 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.006399, allocations: 1.219 kB / 0.5232 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.006411, allocations: 384 / 0.5232 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.006423, allocations: 7.938 kB / 0.5232 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.421e-05/0.006487, allocations: 21.2 kB / 0.5233 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.006648, allocations: 116.6 kB / 0.5234 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.006778, allocations: 70.97 kB / 0.5234 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.536e-05/0.006823, allocations: 25.47 kB / 0.5235 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002626/0.007086, allocations: 35.95 kB / 0.5235 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.007121, allocations: 39.14 kB / 0.5235 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.007122, allocations: 4 kB / 0.5235 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.01713/0.02426, allocations: 5.541 MB / 0.529 GB, free: 9.234 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.0243, allocations: 51.41 kB / 0.529 GB, free: 9.172 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.0244, allocations: 156.4 kB / 0.5292 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.638e-05/0.02447, allocations: 29.7 kB / 0.5292 GB, free: 8.969 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.452e-05/0.02452, allocations: 134.9 kB / 0.5293 GB, free: 8.832 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.02464, allocations: 63.44 kB / 0.5294 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002554/0.0249, allocations: 91.33 kB / 0.5295 GB, free: 8.672 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000183/0.02508, allocations: 0.4975 MB / 0.5299 GB, free: 8.164 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006506/0.02573, allocations: 463.8 kB / 0.5304 GB, free: 7.711 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006355/0.02637, allocations: 464.8 kB / 0.5308 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.0282, allocations: 1.072 MB / 0.5319 GB, free: 6.184 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.0282, allocations: 1.781 kB / 0.5319 GB, free: 6.184 MB / 0.4948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001225/0.02942, allocations: 1.105 MB / 0.533 GB, free: 5.074 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.02944, allocations: 4 kB / 0.533 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.02945, allocations: 0 / 0.533 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.02947, allocations: 4 kB / 0.533 GB, free: 5.066 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004239/0.02989, allocations: 97.62 kB / 0.5331 GB, free: 4.973 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.0299, allocations: 0 / 0.5331 GB, free: 4.973 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.03011, allocations: 8 kB / 0.5331 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.03016, allocations: 31.98 kB / 0.5331 GB, free: 4.934 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.0001568/0.03032, allocations: 165.4 kB / 0.5333 GB, free: 4.762 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.03046, allocations: 19.89 kB / 0.5333 GB, free: 4.742 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001808/0.03227, allocations: 1.336 MB / 0.5346 GB, free: 3.488 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.03227, allocations: 7.938 kB / 0.5346 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.03228, allocations: 0 / 0.5346 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.03229, allocations: 3.984 kB / 0.5346 GB, free: 3.477 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001996/0.03428, allocations: 1.619 MB / 0.5362 GB, free: 1.812 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.03429, allocations: 4 kB / 0.5362 GB, free: 1.809 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.03469, allocations: 103.9 kB / 0.5363 GB, free: 1.707 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.0347, allocations: 4 kB / 0.5363 GB, free: 1.703 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.926e-05/0.03474, allocations: 31.98 kB / 0.5363 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.03475, allocations: 7.938 kB / 0.5363 GB, free: 1.664 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.03475, allocations: 0 / 0.5363 GB, free: 1.664 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.03623, allocations: 1.341 MB / 0.5376 GB, free: 304 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.693e-05/0.03625, allocations: 15.91 kB / 0.5376 GB, free: 288 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.309e-05/0.0363, allocations: 8 kB / 0.5376 GB, free: 280 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.03651, allocations: 8 kB / 0.5377 GB, free: 272 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-05/0.0366, allocations: 43.95 kB / 0.5377 GB, free: 228 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.03665, allocations: 31.98 kB / 0.5377 GB, free: 196 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.484e-05/0.03669, allocations: 123.2 kB / 0.5378 GB, free: 72 kB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.03669, allocations: 0 / 0.5378 GB, free: 72 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004796/0.03717, allocations: 191.7 kB / 0.538 GB, free: 15.88 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.000437/0.0376, allocations: 250.9 kB / 0.5383 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00112/0.03872, allocations: 0.8743 MB / 0.5391 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.03873, allocations: 0 / 0.5391 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005788/0.03931, allocations: 411.6 kB / 0.5395 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.03964, allocations: 39.98 kB / 0.5395 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.0415, allocations: 0.7643 MB / 0.5403 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.45e-05/0.04154, allocations: 73.34 kB / 0.5404 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0006108/0.04215, allocations: 297.5 kB / 0.5406 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003932/0.04255, allocations: 96.47 kB / 0.5407 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of SimCode: time 1.052e-06/0.04255, allocations: 0 / 0.5407 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of Templates: time 0.01198/0.05453, allocations: 12.24 MB / 0.5527 GB, free: 0.9141 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 660] (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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.147957517299801]