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.001197/0.001197, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001324/0.001324, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.322/1.322, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 179] 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.2055/0.2055, allocations: 46.92 MB / 361.5 MB, free: 4.176 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 0.00221/0.00221, allocations: 84.09 kB / 0.4974 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2711, allocations: 66.08 MB / 0.5619 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001539/0.2727, allocations: 499.3 kB / 0.5624 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.2748, allocations: 1.668 MB / 0.564 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.212e-05/0.2749, allocations: 4 kB / 0.564 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.095e-05/0.2749, allocations: 0 / 0.564 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.049e-06/0.2749, allocations: 0 / 0.564 GB, free: 2.215 MB / 398.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.0006174/0.2755, allocations: 155.4 kB / 0.5642 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.972e-05/0.2755, allocations: 8 kB / 0.5642 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.399e-05/0.2756, allocations: 7.984 kB / 0.5642 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.323e-05/0.2756, allocations: 0 / 0.5642 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.736e-05/0.2756, allocations: 3.938 kB / 0.5642 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-06/0.2756, allocations: 4 kB / 0.5642 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.2759, allocations: 119.8 kB / 0.5643 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.165e-06/0.2759, allocations: 4 kB / 0.5643 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.548e-05/0.276, allocations: 0 / 0.5643 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.859e-05/0.2761, allocations: 38.62 kB / 0.5644 GB, free: 1.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2761, allocations: 0 / 0.5644 GB, free: 1.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2761, allocations: 4 kB / 0.5644 GB, free: 1.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2761, allocations: 0 / 0.5644 GB, free: 1.879 MB / 398.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.0002899/0.2764, allocations: 272.1 kB / 0.5646 GB, free: 1.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.2764, allocations: 11.97 kB / 0.5646 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.2764, allocations: 4.938 kB / 0.5647 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.71e-05/0.2765, allocations: 106.5 kB / 0.5648 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.2765, allocations: 384 / 0.5648 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-06/0.2765, allocations: 384 / 0.5648 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.284e-05/0.2766, allocations: 41.95 kB / 0.5648 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.2766, allocations: 0 / 0.5648 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.2766, allocations: 0 / 0.5648 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-06/0.2766, allocations: 0 / 0.5648 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.752e-05/0.2766, allocations: 7.938 kB / 0.5648 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.2767, allocations: 120.7 kB / 0.5649 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.968e-05/0.2768, allocations: 18.56 kB / 0.5649 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.407e-05/0.2768, allocations: 8.953 kB / 0.5649 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.2768, allocations: 4 kB / 0.5649 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/0.2769, allocations: 60.2 kB / 0.565 GB, free: 1.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.2769, allocations: 0 / 0.565 GB, free: 1.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001506/0.277, allocations: 67.34 kB / 0.5651 GB, free: 1.023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.2771, allocations: 81.09 kB / 0.5651 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.31e-05/0.2771, allocations: 93.81 kB / 0.5652 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.2771, allocations: 25.7 kB / 0.5653 GB, free: 0.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.2772, allocations: 84.27 kB / 0.5653 GB, free: 0.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.2772, allocations: 4 kB / 0.5653 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.2772, allocations: 9.719 kB / 0.5654 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.2773, allocations: 314.8 kB / 0.5657 GB, free: 380 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.2773, allocations: 8 kB / 0.5657 GB, free: 372 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.128e-06/0.2773, allocations: 0 / 0.5657 GB, free: 372 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.493e-05/0.2774, allocations: 60.27 kB / 0.5657 GB, free: 296 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2774, allocations: 0 / 0.5657 GB, free: 296 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.921e-05/0.2774, allocations: 71.39 kB / 0.5658 GB, free: 212 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.2775, allocations: 35.83 kB / 0.5658 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.2775, allocations: 0 / 0.5658 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2775, allocations: 0 / 0.5658 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.2775, allocations: 0 / 0.5658 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.848e-06/0.2775, allocations: 0 / 0.5658 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.743e-05/0.2775, allocations: 4 kB / 0.5658 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.2775, allocations: 4 kB / 0.5658 GB, free: 164 kB / 398.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 7.951e-05/0.2776, allocations: 135.5 kB / 0.566 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.2776, allocations: 11.97 kB / 0.566 GB, free: 0 / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.2776, allocations: 7.047 kB / 0.566 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2776, allocations: 0 / 0.566 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2776, allocations: 0 / 0.566 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.2777, allocations: 7.875 kB / 0.566 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.735e-05/0.2777, allocations: 124.7 kB / 0.5661 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.2777, allocations: 0 / 0.5661 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.2777, allocations: 0 / 0.5661 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2778, allocations: 3.938 kB / 0.5661 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.2778, allocations: 0 / 0.5661 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.2778, allocations: 0 / 0.5661 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.2778, allocations: 4 kB / 0.5661 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.832e-05/0.2779, allocations: 94.77 kB / 0.5662 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-06/0.2779, allocations: 0 / 0.5662 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.2779, allocations: 7.938 kB / 0.5662 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.2779, allocations: 0 / 0.5662 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.2779, allocations: 4 kB / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.2779, allocations: 0 / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.836e-05/0.2779, allocations: 79.31 kB / 0.5663 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2779, allocations: 0 / 0.5663 GB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.2781, allocations: 16 kB / 0.5663 GB, free: 15.59 MB / 414.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.0002818/0.2784, allocations: 140.6 kB / 0.5664 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.36e-05/0.2785, allocations: 67.33 kB / 0.5665 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2785, allocations: 4 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.133e-05/0.2786, allocations: 55.47 kB / 0.5666 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001135/0.2787, allocations: 4 kB / 0.5666 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001725/0.2788, allocations: 114.8 kB / 0.5667 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.2791, allocations: 0.6729 MB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.02e-05/0.2791, allocations: 7.438 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2791, allocations: 3.938 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of Templates: time 0.002019/0.2811, allocations: 0.6664 MB / 0.568 GB, free: 13.77 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/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: 6.456997941015288]