Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.006196/0.006196, allocations: 107.9 kB / 21.97 MB, free: 5.184 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.001718/0.001718, allocations: 218.2 kB / 25.29 MB, free: 3.203 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.422/1.422, allocations: 230.5 MB / 258.9 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2292/0.2292, allocations: 46.93 MB / 362.3 MB, free: 4.211 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 83.86 kB / 0.4982 GB, free: 7.289 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3291, allocations: 66.07 MB / 0.5627 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001639/0.3307, allocations: 0.5047 MB / 0.5632 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.3331, allocations: 1.668 MB / 0.5648 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.3331, allocations: 0 / 0.5648 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.3331, allocations: 0 / 0.5648 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.3331, allocations: 0 / 0.5648 GB, free: 2.059 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.0006739/0.3338, allocations: 163.4 kB / 0.565 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.497e-05/0.3338, allocations: 0 / 0.565 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.718e-05/0.3339, allocations: 3.938 kB / 0.565 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.898e-05/0.3339, allocations: 3.984 kB / 0.565 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.104e-05/0.3339, allocations: 4 kB / 0.565 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-06/0.3339, allocations: 0 / 0.565 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003755/0.3343, allocations: 115.9 kB / 0.5651 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-06/0.3343, allocations: 3.984 kB / 0.5651 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.3343, allocations: 8 kB / 0.5651 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.3345, allocations: 39.61 kB / 0.5652 GB, free: 1.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.247e-06/0.3345, allocations: 0 / 0.5652 GB, free: 1.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3345, allocations: 0 / 0.5652 GB, free: 1.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.361e-06/0.3345, allocations: 0 / 0.5652 GB, free: 1.727 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.0003149/0.3348, allocations: 270.8 kB / 0.5654 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3348, allocations: 12.03 kB / 0.5654 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.668e-05/0.3348, allocations: 4.875 kB / 0.5654 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.879e-05/0.3349, allocations: 106.5 kB / 0.5655 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3349, allocations: 4.375 kB / 0.5655 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-06/0.3349, allocations: 4.375 kB / 0.5655 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.41e-05/0.335, allocations: 34.02 kB / 0.5656 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.335, allocations: 3.984 kB / 0.5656 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.335, allocations: 0 / 0.5656 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.875e-06/0.335, allocations: 0 / 0.5656 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.6e-05/0.3351, allocations: 4 kB / 0.5656 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.3352, allocations: 112.8 kB / 0.5657 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.663e-05/0.3352, allocations: 26.55 kB / 0.5657 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.3352, allocations: 8.859 kB / 0.5657 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.3353, allocations: 0 / 0.5657 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.3353, allocations: 60.2 kB / 0.5658 GB, free: 0.957 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3353, allocations: 0 / 0.5658 GB, free: 0.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000157/0.3355, allocations: 63.45 kB / 0.5658 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.3355, allocations: 77.11 kB / 0.5659 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.501e-05/0.3356, allocations: 97.81 kB / 0.566 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.3356, allocations: 37.7 kB / 0.566 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.3356, allocations: 84.14 kB / 0.5661 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.3356, allocations: 0 / 0.5661 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.3357, allocations: 13.7 kB / 0.5661 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3358, allocations: 314.8 kB / 0.5664 GB, free: 224 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.3358, allocations: 4 kB / 0.5664 GB, free: 220 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.511e-06/0.3358, allocations: 0 / 0.5664 GB, free: 220 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.507e-05/0.3359, allocations: 64.33 kB / 0.5665 GB, free: 140 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3359, allocations: 0 / 0.5665 GB, free: 140 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.333e-05/0.3359, allocations: 67.39 kB / 0.5666 GB, free: 60 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.336, allocations: 33.64 kB / 0.5666 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.336, allocations: 0 / 0.5666 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.336, allocations: 0 / 0.5666 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-06/0.336, allocations: 3.938 kB / 0.5666 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.466e-06/0.336, allocations: 4 kB / 0.5666 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.183e-05/0.336, allocations: 0 / 0.5666 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.336, allocations: 4 kB / 0.5666 GB, free: 8 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 0.0001084/0.3361, allocations: 140.5 kB / 0.5667 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.3361, allocations: 7.875 kB / 0.5668 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.276e-05/0.3361, allocations: 6.984 kB / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.72e-07/0.3361, allocations: 0 / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3362, allocations: 0 / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3362, allocations: 0 / 0.5668 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.32e-05/0.3362, allocations: 120.8 kB / 0.5669 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3362, allocations: 0 / 0.5669 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3362, allocations: 0 / 0.5669 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.3363, allocations: 7.922 kB / 0.5669 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.03e-06/0.3363, allocations: 4 kB / 0.5669 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3363, allocations: 0 / 0.5669 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3363, allocations: 3.984 kB / 0.5669 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.573e-05/0.3364, allocations: 86.84 kB / 0.567 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-06/0.3364, allocations: 0 / 0.567 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.3364, allocations: 15.86 kB / 0.567 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.3364, allocations: 0 / 0.567 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-06/0.3364, allocations: 4.031 kB / 0.567 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.3364, allocations: 0 / 0.567 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.231e-05/0.3364, allocations: 75.28 kB / 0.5671 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3364, allocations: 0 / 0.5671 GB, free: 15.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0001985/0.3366, allocations: 19.94 kB / 0.5671 GB, free: 15.44 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.0002871/0.3369, allocations: 141.5 kB / 0.5672 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.371e-05/0.337, allocations: 59.41 kB / 0.5673 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.42e-07/0.337, allocations: 0 / 0.5673 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.264e-05/0.337, allocations: 55.41 kB / 0.5673 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001143/0.3372, allocations: 3.984 kB / 0.5673 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001808/0.3373, allocations: 114.8 kB / 0.5674 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.3376, allocations: 0.6728 MB / 0.5681 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.3376, allocations: 7.438 kB / 0.5681 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3376, allocations: 4 kB / 0.5681 GB, free: 14.3 MB / 414.1 MB Notification: Performance of Templates: time 0.002256/0.3399, allocations: 0.6751 MB / 0.5688 GB, free: 13.62 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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_4.1.0-beta.om_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: 7.15322772716172]