Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 200.3 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009672/0.0009675, allocations: 99.62 kB / 299.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3073/0.3073, allocations: 45.01 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.000287, allocations: 4 kB / 470.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2882, allocations: 63.1 MB / 0.5214 GB, free: 38.42 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005601/0.2888, allocations: 219.8 kB / 0.5216 GB, free: 38.27 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.2908, allocations: 2.786 MB / 0.5243 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.371e-05/0.2908, allocations: 0 / 0.5243 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.259e-05/0.2908, allocations: 0 / 0.5243 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.2908, allocations: 0 / 0.5243 GB, free: 35.64 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0005005/0.2913, allocations: 137.1 kB / 0.5244 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.083e-05/0.2914, allocations: 0 / 0.5244 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.768e-05/0.2914, allocations: 0 / 0.5244 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.653e-05/0.2915, allocations: 2.656 kB / 0.5244 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.607e-05/0.2915, allocations: 3.984 kB / 0.5244 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.941e-06/0.2915, allocations: 4 kB / 0.5244 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.2918, allocations: 104.1 kB / 0.5245 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.143e-06/0.2918, allocations: 0 / 0.5245 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.881e-05/0.2918, allocations: 29.64 kB / 0.5246 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.292, allocations: 100.1 kB / 0.5247 GB, free: 35.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.292, allocations: 3.938 kB / 0.5247 GB, free: 35.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.292, allocations: 0 / 0.5247 GB, free: 35.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.292, allocations: 0 / 0.5247 GB, free: 35.45 MB / 378.7 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.0002471/0.2923, allocations: 362.3 kB / 0.525 GB, free: 35.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2923, allocations: 14.72 kB / 0.525 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.472e-05/0.2924, allocations: 0.9375 kB / 0.525 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.85e-05/0.2924, allocations: 171.7 kB / 0.5252 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.2924, allocations: 4.312 kB / 0.5252 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.2924, allocations: 2.938 kB / 0.5252 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.74e-05/0.2925, allocations: 33.42 kB / 0.5252 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-06/0.2925, allocations: 0 / 0.5252 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.2926, allocations: 0 / 0.5252 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.2926, allocations: 0 / 0.5252 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.573e-05/0.2926, allocations: 0 / 0.5252 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.778e-05/0.2927, allocations: 152 kB / 0.5254 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.69e-05/0.2927, allocations: 18.52 kB / 0.5254 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.343e-05/0.2927, allocations: 11.67 kB / 0.5254 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.675e-06/0.2927, allocations: 0 / 0.5254 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.2928, allocations: 60.2 kB / 0.5255 GB, free: 34.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.2928, allocations: 0 / 0.5255 GB, free: 34.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.2929, allocations: 69.53 kB / 0.5255 GB, free: 34.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.293, allocations: 77.11 kB / 0.5256 GB, free: 34.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.976e-05/0.293, allocations: 89.86 kB / 0.5257 GB, free: 34.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-06/0.293, allocations: 29.7 kB / 0.5257 GB, free: 34.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.015e-05/0.293, allocations: 80.14 kB / 0.5258 GB, free: 34.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.103e-05/0.293, allocations: 0 / 0.5258 GB, free: 34.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.293, allocations: 0 / 0.5258 GB, free: 34.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/0.2931, allocations: 321.3 kB / 0.5261 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.843e-06/0.2931, allocations: 128 / 0.5261 GB, free: 33.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.529e-06/0.2931, allocations: 4 kB / 0.5261 GB, free: 33.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.62e-05/0.2931, allocations: 62.95 kB / 0.5262 GB, free: 33.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.2932, allocations: 0 / 0.5262 GB, free: 33.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.626e-05/0.2932, allocations: 67.2 kB / 0.5262 GB, free: 33.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.2932, allocations: 35.58 kB / 0.5263 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2932, allocations: 0 / 0.5263 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.2933, allocations: 0 / 0.5263 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-06/0.2933, allocations: 4 kB / 0.5263 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2933, allocations: 4.094 kB / 0.5263 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.478e-05/0.2933, allocations: 2.938 kB / 0.5263 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.2933, allocations: 3.938 kB / 0.5263 GB, free: 33.62 MB / 378.7 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 4.605e-05/0.2934, allocations: 137.7 kB / 0.5264 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.162e-06/0.2934, allocations: 3.938 kB / 0.5264 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.274e-06/0.2934, allocations: 10.66 kB / 0.5264 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.61e-07/0.2934, allocations: 0 / 0.5264 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.2934, allocations: 0 / 0.5264 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-06/0.2934, allocations: 2.75 kB / 0.5264 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.433e-05/0.2934, allocations: 148.9 kB / 0.5266 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.2935, allocations: 0 / 0.5266 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2935, allocations: 0 / 0.5266 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2935, allocations: 7 kB / 0.5266 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.2935, allocations: 4 kB / 0.5266 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2935, allocations: 0 / 0.5266 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2935, allocations: 0 / 0.5266 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.921e-05/0.2935, allocations: 88.91 kB / 0.5267 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.385e-05/0.2936, allocations: 81.14 kB / 0.5267 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.2936, allocations: 6.656 kB / 0.5267 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-06/0.2936, allocations: 0 / 0.5267 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.2936, allocations: 3.938 kB / 0.5267 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/0.2936, allocations: 5.938 kB / 0.5267 GB, free: 33.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.071e-05/0.2936, allocations: 75.28 kB / 0.5268 GB, free: 32.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2936, allocations: 0 / 0.5268 GB, free: 32.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002495/0.2939, allocations: 42.75 kB / 0.5269 GB, free: 32.98 MB / 378.7 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.0002898/0.2942, allocations: 192.9 kB / 0.527 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.029e-05/0.2943, allocations: 56.84 kB / 0.5271 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2943, allocations: 0 / 0.5271 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.65e-05/0.2943, allocations: 57.03 kB / 0.5271 GB, free: 32.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001192/0.2944, allocations: 6.5 kB / 0.5272 GB, free: 32.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001351/0.2946, allocations: 76.27 kB / 0.5272 GB, free: 32.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.861e-05/0.2947, allocations: 0.6788 MB / 0.5279 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.898e-06/0.2947, allocations: 0 / 0.5279 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.622e-06/0.2947, allocations: 7.438 kB / 0.5279 GB, free: 31.93 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2947, allocations: 0 / 0.5279 GB, free: 31.93 MB / 378.7 MB Notification: Performance of Templates: time 0.00295/0.2977, allocations: 1.253 MB / 0.5291 GB, free: 31.78 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches