Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001331/0.001331, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 34.27 MB / 294.8 MB, free: 14.52 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 3.938 kB / 442.6 MB, free: 5.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.293e-05/2.434e-05, allocations: 4.812 kB / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001327/0.001352, allocations: 0.4971 MB / 443.1 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.003681, allocations: 1.575 MB / 444.7 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.003705, allocations: 0 / 444.7 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.00372, allocations: 0 / 444.7 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-06/0.003726, allocations: 0 / 444.7 MB, free: 3.219 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006539/0.00438, allocations: 179 kB / 444.9 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.253e-05/0.004433, allocations: 4 kB / 444.9 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.242e-05/0.004475, allocations: 0 / 444.9 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.629e-05/0.004501, allocations: 4 kB / 444.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.161e-05/0.004523, allocations: 0 / 444.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.004531, allocations: 7.938 kB / 444.9 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004122/0.004943, allocations: 119.8 kB / 445 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-06/0.004952, allocations: 0 / 445 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.776e-05/0.00497, allocations: 4 kB / 445 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.005123, allocations: 47.88 kB / 445.1 MB, free: 2.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.005126, allocations: 0 / 445.1 MB, free: 2.863 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.005127, allocations: 0 / 445.1 MB, free: 2.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.005131, allocations: 0 / 445.1 MB, free: 2.863 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003507/0.005482, allocations: 264.1 kB / 445.3 MB, free: 2.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.005518, allocations: 16.03 kB / 445.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.005545, allocations: 0.9375 kB / 445.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.331e-05/0.005638, allocations: 109.8 kB / 445.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.005646, allocations: 384 / 445.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.005658, allocations: 384 / 445.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.005774, allocations: 59.91 kB / 445.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.005783, allocations: 192 / 445.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.00579, allocations: 384 / 445.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.005796, allocations: 7.875 kB / 445.5 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.268e-05/0.005828, allocations: 29.7 kB / 445.5 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001286/0.005957, allocations: 97.31 kB / 445.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.859e-05/0.006015, allocations: 52.31 kB / 445.7 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.764e-05/0.006043, allocations: 30.56 kB / 445.7 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-06/0.006047, allocations: 0 / 445.7 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.006091, allocations: 68.2 kB / 445.8 MB, free: 1.996 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.006091, allocations: 0 / 445.8 MB, free: 1.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000198/0.006289, allocations: 118.8 kB / 445.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.006346, allocations: 81.05 kB / 446 MB, free: 1.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.644e-05/0.006392, allocations: 89.86 kB / 446.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.006407, allocations: 25.7 kB / 446.1 MB, free: 1.629 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.634e-05/0.006444, allocations: 84.27 kB / 446.2 MB, free: 1.543 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.006462, allocations: 7.953 kB / 446.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.006491, allocations: 9.719 kB / 446.2 MB, free: 1.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.006624, allocations: 318.8 kB / 446.5 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.686e-05/0.006651, allocations: 29.7 kB / 446.5 MB, free: 1.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.274e-05/0.006674, allocations: 33.64 kB / 446.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.422e-05/0.006728, allocations: 60.27 kB / 446.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.00673, allocations: 0 / 446.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.782e-05/0.006818, allocations: 89.09 kB / 446.7 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.335e-05/0.006851, allocations: 37.8 kB / 446.7 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.006855, allocations: 4 kB / 446.8 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.006872, allocations: 0 / 446.8 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.006872, allocations: 0 / 446.8 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.006879, allocations: 3.938 kB / 446.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.224e-05/0.006891, allocations: 0 / 446.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.006896, allocations: 0 / 446.8 MB, free: 0.8945 MB / 366.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.002e-05/0.006986, allocations: 135.5 kB / 446.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.136e-06/0.006994, allocations: 0 / 446.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.23e-05/0.007007, allocations: 6.984 kB / 446.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.007008, allocations: 0 / 446.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.007011, allocations: 11.94 kB / 446.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.007015, allocations: 3.938 kB / 446.9 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.411e-05/0.007089, allocations: 93.33 kB / 447 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.007089, allocations: 0 / 447 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.00709, allocations: 3.938 kB / 447 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.007093, allocations: 3.984 kB / 447 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.007099, allocations: 4 kB / 447 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.007103, allocations: 3.984 kB / 447 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.007104, allocations: 0 / 447 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.007223, allocations: 120.5 kB / 447.1 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-06/0.007226, allocations: 4.031 kB / 447.1 MB, free: 444 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.00724, allocations: 3.984 kB / 447.1 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.007248, allocations: 4 kB / 447.1 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.645e-05/0.007265, allocations: 0 / 447.1 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.007267, allocations: 0 / 447.1 MB, free: 436 kB / 366.1 MB Notification: Performance of sorting global known variables: time 4.221e-05/0.007309, allocations: 83.22 kB / 447.2 MB, free: 352 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.007309, allocations: 3.938 kB / 447.2 MB, free: 348 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002188/0.007528, allocations: 19.94 kB / 447.3 MB, free: 328 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0003216/0.00785, allocations: 148.8 kB / 447.4 MB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.007979, allocations: 114.8 kB / 447.5 MB, free: 32 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.007981, allocations: 0 / 447.5 MB, free: 32 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2079/0.2159, allocations: 81.72 kB / 447.6 MB, free: 19.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.2162, allocations: 4.531 kB / 447.6 MB, free: 19.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003617/0.2165, allocations: 105.2 kB / 447.7 MB, free: 19.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.859e-05/0.2166, allocations: 55.09 kB / 447.7 MB, free: 19.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.027e-06/0.2166, allocations: 0 / 447.7 MB, free: 19.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.926e-05/0.2166, allocations: 9.656 kB / 447.8 MB, free: 19.05 MB / 366.1 MB Notification: Performance of SimCode: time 1.432e-06/0.2166, allocations: 2.062 kB / 447.8 MB, free: 19.05 MB / 366.1 MB Notification: Performance of Templates: time 0.00569/0.2223, allocations: 0.6655 MB / 448.4 MB, free: 19.04 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.767898287624121]