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.001635/0.001635, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002066/0.002066, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.42/1.42, allocations: 230.6 MB / 258.3 MB, free: 7.969 MB / 206.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.2177/0.2177, allocations: 46.93 MB / 361.6 MB, free: 4.254 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 0.002117/0.002117, allocations: 63.89 kB / 0.4974 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3012, allocations: 66.04 MB / 0.5619 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001569/0.3028, allocations: 489 kB / 0.5623 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.3052, allocations: 1.672 MB / 0.564 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.368e-05/0.3052, allocations: 0 / 0.564 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.168e-05/0.3052, allocations: 0 / 0.564 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.493e-06/0.3052, allocations: 0 / 0.564 GB, free: 2.242 MB / 398.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.0006962/0.3059, allocations: 167.4 kB / 0.5641 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.166e-05/0.306, allocations: 0 / 0.5641 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.578e-05/0.306, allocations: 0 / 0.5641 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.052e-05/0.306, allocations: 4 kB / 0.5641 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.306, allocations: 0 / 0.5641 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-06/0.3061, allocations: 0 / 0.5641 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003803/0.3064, allocations: 127.9 kB / 0.5642 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-06/0.3064, allocations: 0 / 0.5642 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.736e-05/0.3065, allocations: 4 kB / 0.5643 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.3066, allocations: 35.62 kB / 0.5643 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3066, allocations: 0 / 0.5643 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3066, allocations: 3.938 kB / 0.5643 GB, free: 1.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3066, allocations: 0 / 0.5643 GB, free: 1.91 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.0003278/0.3069, allocations: 278.7 kB / 0.5646 GB, free: 1.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3069, allocations: 12.03 kB / 0.5646 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.665e-05/0.307, allocations: 8.938 kB / 0.5646 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.318e-05/0.3071, allocations: 102.5 kB / 0.5647 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3071, allocations: 384 / 0.5647 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.3071, allocations: 4.375 kB / 0.5647 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.44e-05/0.3072, allocations: 38 kB / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.3072, allocations: 0 / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.3072, allocations: 0 / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.3072, allocations: 0 / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.513e-05/0.3072, allocations: 4 kB / 0.5647 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/0.3074, allocations: 116.8 kB / 0.5648 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.679e-05/0.3074, allocations: 26.55 kB / 0.5649 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.3074, allocations: 8.844 kB / 0.5649 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.3074, allocations: 0 / 0.5649 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.3075, allocations: 60.2 kB / 0.5649 GB, free: 1.133 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3075, allocations: 0 / 0.5649 GB, free: 1.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001654/0.3077, allocations: 63.45 kB / 0.565 GB, free: 1.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.3077, allocations: 93.17 kB / 0.5651 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.3078, allocations: 97.8 kB / 0.5652 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.3078, allocations: 25.7 kB / 0.5652 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.3078, allocations: 80.14 kB / 0.5653 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.3079, allocations: 0 / 0.5653 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.3079, allocations: 13.72 kB / 0.5653 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.308, allocations: 310.8 kB / 0.5656 GB, free: 408 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.264e-05/0.308, allocations: 4 kB / 0.5656 GB, free: 404 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-06/0.308, allocations: 4 kB / 0.5656 GB, free: 400 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.245e-05/0.3081, allocations: 64.27 kB / 0.5656 GB, free: 320 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3081, allocations: 0 / 0.5656 GB, free: 320 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.428e-05/0.3082, allocations: 63.39 kB / 0.5657 GB, free: 244 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.3082, allocations: 40.08 kB / 0.5657 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3082, allocations: 3.938 kB / 0.5657 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.3082, allocations: 0 / 0.5657 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3082, allocations: 4 kB / 0.5657 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3082, allocations: 3.984 kB / 0.5658 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.3083, allocations: 4.094 kB / 0.5658 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.3083, allocations: 3.984 kB / 0.5658 GB, free: 180 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 9.566e-05/0.3084, allocations: 143.5 kB / 0.5659 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.089e-05/0.3084, allocations: 7.938 kB / 0.5659 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.658e-06/0.3084, allocations: 3 kB / 0.5659 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.3084, allocations: 3.938 kB / 0.5659 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3084, allocations: 0 / 0.5659 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.3084, allocations: 0 / 0.5659 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.3085, allocations: 116.8 kB / 0.566 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3085, allocations: 4 kB / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-06/0.3085, allocations: 3.984 kB / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3085, allocations: 3.938 kB / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.3085, allocations: 0 / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.3085, allocations: 0 / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3085, allocations: 4 kB / 0.566 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.734e-05/0.3086, allocations: 90.77 kB / 0.5661 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.304e-06/0.3086, allocations: 8.031 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.3086, allocations: 3.938 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.024e-05/0.3086, allocations: 4 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.929e-06/0.3086, allocations: 0 / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3086, allocations: 0 / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.921e-05/0.3087, allocations: 75.28 kB / 0.5662 GB, free: 15.63 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3087, allocations: 4 kB / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.3089, allocations: 19.94 kB / 0.5662 GB, free: 15.61 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.0002864/0.3092, allocations: 137.5 kB / 0.5664 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.3093, allocations: 55.41 kB / 0.5664 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3093, allocations: 0 / 0.5664 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.215e-05/0.3094, allocations: 67.33 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000115/0.3095, allocations: 0 / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001962/0.3097, allocations: 114.7 kB / 0.5666 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.31, allocations: 0.673 MB / 0.5672 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.326e-05/0.31, allocations: 11.44 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.31, allocations: 0 / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of Templates: time 0.00232/0.3123, allocations: 0.6672 MB / 0.5679 GB, free: 13.8 MB / 414.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/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_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.04339644103311]