Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.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.001807/0.001807, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002376/0.002376, allocations: 170.7 kB / 23.95 MB, free: 4.172 MB / 14.72 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.499/1.499, allocations: 177.1 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2204/0.2204, allocations: 34.27 MB / 294.9 MB, free: 14.57 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+maint.om/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(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 442.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.464e-05/2.661e-05, allocations: 2.281 kB / 442.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00156/0.001586, allocations: 0.4932 MB / 443.1 MB, free: 4.918 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.004044, allocations: 1.579 MB / 444.7 MB, free: 3.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.004068, allocations: 0 / 444.7 MB, free: 3.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.00408, allocations: 0 / 444.7 MB, free: 3.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.37e-06/0.004085, allocations: 4 kB / 444.7 MB, free: 3.316 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.0007412/0.004826, allocations: 174.2 kB / 444.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.255e-05/0.004869, allocations: 0 / 444.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.445e-05/0.004903, allocations: 3.984 kB / 444.9 MB, free: 3.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.885e-05/0.004932, allocations: 4 kB / 444.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.604e-05/0.004958, allocations: 7.938 kB / 444.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-06/0.004966, allocations: 0 / 444.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003956/0.005362, allocations: 119.8 kB / 445 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.793e-06/0.005369, allocations: 4 kB / 445 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.613e-05/0.005385, allocations: 0 / 445 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.005522, allocations: 47.88 kB / 445.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.005525, allocations: 0 / 445.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.005527, allocations: 0 / 445.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.00553, allocations: 0 / 445.1 MB, free: 2.965 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.0003155/0.005846, allocations: 276.1 kB / 445.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.005886, allocations: 12.03 kB / 445.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.742e-05/0.005913, allocations: 0.9375 kB / 445.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.14e-05/0.005995, allocations: 101.8 kB / 445.5 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.006006, allocations: 384 / 445.5 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.006017, allocations: 4.375 kB / 445.5 MB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.164e-05/0.006109, allocations: 51.97 kB / 445.5 MB, free: 2.457 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.006117, allocations: 4.125 kB / 445.5 MB, free: 2.453 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.006124, allocations: 384 / 445.5 MB, free: 2.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.006135, allocations: 11.92 kB / 445.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.498e-05/0.00617, allocations: 29.64 kB / 445.6 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001085/0.006278, allocations: 101.3 kB / 445.7 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.038e-05/0.006349, allocations: 44.31 kB / 445.7 MB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.951e-05/0.006378, allocations: 30.56 kB / 445.7 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.006393, allocations: 4.062 kB / 445.7 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/0.006445, allocations: 56.27 kB / 445.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.006446, allocations: 3.938 kB / 445.8 MB, free: 2.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001921/0.006639, allocations: 122.7 kB / 445.9 MB, free: 1.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.006701, allocations: 81.05 kB / 446 MB, free: 1.859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.837e-05/0.006749, allocations: 89.86 kB / 446.1 MB, free: 1.762 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.006768, allocations: 33.83 kB / 446.1 MB, free: 1.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.006803, allocations: 80.14 kB / 446.2 MB, free: 1.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.006821, allocations: 7.938 kB / 446.2 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.006849, allocations: 9.719 kB / 446.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.006984, allocations: 318.8 kB / 446.5 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.44e-05/0.007009, allocations: 25.7 kB / 446.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.797e-05/0.007027, allocations: 25.7 kB / 446.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.518e-05/0.007082, allocations: 60.27 kB / 446.6 MB, free: 1.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.007084, allocations: 0 / 446.6 MB, free: 1.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001006/0.007184, allocations: 101.1 kB / 446.7 MB, free: 1.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.007219, allocations: 33.7 kB / 446.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.007223, allocations: 0 / 446.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.007233, allocations: 0 / 446.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.007233, allocations: 0 / 446.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.007238, allocations: 3.938 kB / 446.8 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.183e-05/0.00725, allocations: 0 / 446.8 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-06/0.007253, allocations: 0 / 446.8 MB, free: 1 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.307e-05/0.007346, allocations: 139.5 kB / 446.9 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-06/0.007354, allocations: 0 / 446.9 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.112e-05/0.007366, allocations: 3 kB / 446.9 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.007367, allocations: 8.031 kB / 446.9 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.007371, allocations: 0 / 446.9 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.007375, allocations: 3.938 kB / 446.9 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.669e-05/0.007452, allocations: 97.27 kB / 447 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.007452, allocations: 0 / 447 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.905e-06/0.007455, allocations: 3.984 kB / 447 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.007458, allocations: 4 kB / 447 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.007468, allocations: 4 kB / 447 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.007471, allocations: 4 kB / 447 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.007473, allocations: 0 / 447 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001231/0.007596, allocations: 124.4 kB / 447.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.763e-06/0.007602, allocations: 4 kB / 447.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.007616, allocations: 4 kB / 447.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-06/0.007625, allocations: 0 / 447.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.557e-05/0.007641, allocations: 0 / 447.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.007644, allocations: 0 / 447.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.181e-05/0.007685, allocations: 79.22 kB / 447.2 MB, free: 464 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.007685, allocations: 0 / 447.2 MB, free: 464 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.007903, allocations: 23.88 kB / 447.3 MB, free: 440 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.0003486/0.008251, allocations: 155.5 kB / 447.4 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001276/0.008379, allocations: 114.8 kB / 447.5 MB, free: 140 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.008381, allocations: 3.938 kB / 447.5 MB, free: 136 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.008433, allocations: 81.11 kB / 447.6 MB, free: 36 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.008556, allocations: 3.094 kB / 447.6 MB, free: 36 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1709/0.1795, allocations: 104 kB / 447.7 MB, free: 19.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.833e-05/0.1795, allocations: 55.44 kB / 447.8 MB, free: 19.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.1795, allocations: 2.281 kB / 447.8 MB, free: 19.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.208e-05/0.1795, allocations: 9.312 kB / 447.8 MB, free: 19.28 MB / 366.1 MB Notification: Performance of SimCode: time 1.292e-06/0.1795, allocations: 0 / 447.8 MB, free: 19.28 MB / 366.1 MB Notification: Performance of Templates: time 0.003331/0.1829, allocations: 0.6658 MB / 448.4 MB, free: 19.26 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.730282798409462]