Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001879/0.001879, allocations: 95.61 kB / 20.96 MB, free: 3.449 MB / 18.57 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.002369/0.002369, allocations: 161.3 kB / 24.27 MB, free: 144 kB / 18.57 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.569/1.569, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3618/0.3618, allocations: 32.8 MB / 293.9 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.18e-05/5.385e-05, allocations: 9.625 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001681/0.001735, allocations: 0.497 MB / 375.7 MB, free: 4.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.004476, allocations: 1.606 MB / 377.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.714e-05/0.004503, allocations: 0 / 377.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.409e-05/0.004517, allocations: 0 / 377.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.923e-06/0.004524, allocations: 4 kB / 377.4 MB, free: 2.883 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0007366/0.005261, allocations: 167.1 kB / 377.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.579e-05/0.005316, allocations: 4 kB / 377.5 MB, free: 2.715 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.005358, allocations: 4 kB / 377.5 MB, free: 2.711 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.907e-05/0.005387, allocations: 3.938 kB / 377.5 MB, free: 2.707 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.132e-05/0.005418, allocations: 3.984 kB / 377.5 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.287e-06/0.005427, allocations: 4 kB / 377.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004383/0.005866, allocations: 111.9 kB / 377.6 MB, free: 2.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.137e-06/0.005875, allocations: 0 / 377.6 MB, free: 2.59 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.852e-05/0.005893, allocations: 4 kB / 377.6 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.006071, allocations: 51.81 kB / 377.7 MB, free: 2.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.006078, allocations: 4 kB / 377.7 MB, free: 2.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.006079, allocations: 0 / 377.7 MB, free: 2.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.006085, allocations: 0 / 377.7 MB, free: 2.531 MB / 346.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.0004327/0.006517, allocations: 366.1 kB / 378.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.237e-05/0.00658, allocations: 8.031 kB / 378.1 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.138e-05/0.006641, allocations: 8.922 kB / 378.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.00718, allocations: 108.6 kB / 378.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.007191, allocations: 384 / 378.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-06/0.007198, allocations: 4.312 kB / 378.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.007315, allocations: 59.97 kB / 378.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.007323, allocations: 192 / 378.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.557e-06/0.007332, allocations: 384 / 378.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.007338, allocations: 3.938 kB / 378.3 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.118e-05/0.00738, allocations: 33.64 kB / 378.3 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.007527, allocations: 108.6 kB / 378.4 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.697e-05/0.007614, allocations: 56.8 kB / 378.4 MB, free: 1.652 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.007656, allocations: 37.39 kB / 378.5 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.007664, allocations: 0 / 378.5 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.34e-05/0.007728, allocations: 63.16 kB / 378.5 MB, free: 1.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.007728, allocations: 4 kB / 378.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002598/0.007988, allocations: 122.7 kB / 378.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.008059, allocations: 81.05 kB / 378.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/0.008157, allocations: 146.2 kB / 378.9 MB, free: 1.125 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.008181, allocations: 25.7 kB / 378.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.287e-05/0.008254, allocations: 126.9 kB / 379 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.008273, allocations: 3.938 kB / 379 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.008314, allocations: 19.38 kB / 379.1 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000275/0.008589, allocations: 496.1 kB / 379.5 MB, free: 448 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.108e-05/0.00862, allocations: 25.7 kB / 379.6 MB, free: 416 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.813e-05/0.008648, allocations: 37.83 kB / 379.6 MB, free: 372 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.202e-05/0.00872, allocations: 63.09 kB / 379.7 MB, free: 292 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.008722, allocations: 0 / 379.7 MB, free: 292 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001149/0.008837, allocations: 93.03 kB / 379.8 MB, free: 180 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.008884, allocations: 33.7 kB / 379.8 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.008889, allocations: 0 / 379.8 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.008904, allocations: 0 / 379.8 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.008905, allocations: 0 / 379.8 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.008912, allocations: 3.938 kB / 379.8 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.775e-05/0.00893, allocations: 8.094 kB / 379.8 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.008936, allocations: 0 / 379.8 MB, free: 128 kB / 346.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 0.0001557/0.009092, allocations: 178.3 kB / 380 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.589e-05/0.009108, allocations: 11.94 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-06/0.009117, allocations: 3 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.009118, allocations: 0 / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.009121, allocations: 3.938 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.009127, allocations: 3.938 kB / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.009237, allocations: 108.6 kB / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.009238, allocations: 0 / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-07/0.009238, allocations: 0 / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.00924, allocations: 4 kB / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.009246, allocations: 0 / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.00925, allocations: 4 kB / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.009255, allocations: 11.92 kB / 380.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.009414, allocations: 131.8 kB / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-06/0.009419, allocations: 0 / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.009434, allocations: 3.984 kB / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.009445, allocations: 4 kB / 380.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.009462, allocations: 0 / 380.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.009464, allocations: 0 / 380.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.367e-05/0.009548, allocations: 131.2 kB / 380.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009548, allocations: 0 / 380.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002239/0.009772, allocations: 16 kB / 380.4 MB, free: 15.44 MB / 362.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.0004616/0.01023, allocations: 137.3 kB / 380.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001875/0.01042, allocations: 130.4 kB / 380.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.01042, allocations: 0 / 380.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.736e-05/0.0105, allocations: 92.86 kB / 380.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.01065, allocations: 6.031 kB / 380.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002823/0.01093, allocations: 113.7 kB / 380.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.355e-05/0.011, allocations: 55.34 kB / 380.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.974e-06/0.01101, allocations: 0 / 380.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.109e-05/0.01103, allocations: 12.5 kB / 380.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01103, allocations: 0 / 380.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of Templates: time 0.003801/0.01483, allocations: 0.6844 MB / 381.6 MB, free: 14.11 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.830253174994141]