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.001906/0.001906, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.002264/0.002264, allocations: 165.7 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.523/1.523, 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.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.4147/0.4147, allocations: 34.27 MB / 295.3 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 179] 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.783e-06/1.783e-06, allocations: 0 / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.914e-05/3.093e-05, allocations: 9.484 kB / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001852/0.001883, allocations: 497.1 kB / 377.8 MB, free: 2.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.005006, allocations: 1.595 MB / 379.3 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.521e-05/0.005031, allocations: 0 / 379.3 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.005047, allocations: 0 / 379.3 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-06/0.005053, allocations: 4 kB / 379.3 MB, free: 0.8828 MB / 346.7 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.0007076/0.00576, allocations: 167.1 kB / 379.5 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.685e-05/0.005817, allocations: 3.984 kB / 379.5 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.005859, allocations: 4 kB / 379.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.685e-05/0.005886, allocations: 0 / 379.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.588e-05/0.005912, allocations: 4 kB / 379.5 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.147e-06/0.005921, allocations: 0 / 379.5 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004242/0.006345, allocations: 115.9 kB / 379.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-06/0.006355, allocations: 0 / 379.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.561e-05/0.006381, allocations: 0 / 379.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.006532, allocations: 51.77 kB / 379.7 MB, free: 0.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.006535, allocations: 0 / 379.7 MB, free: 0.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.006537, allocations: 0 / 379.7 MB, free: 0.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.006542, allocations: 0 / 379.7 MB, free: 0.543 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.0003998/0.006941, allocations: 276.1 kB / 380 MB, free: 244 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.006985, allocations: 12.03 kB / 380 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.007032, allocations: 0.9375 kB / 380 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.007145, allocations: 101.8 kB / 380.1 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.007159, allocations: 384 / 380.1 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-06/0.007166, allocations: 4.375 kB / 380.1 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.007273, allocations: 55.95 kB / 380.1 MB, free: 32 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.007282, allocations: 4.188 kB / 380.1 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.00729, allocations: 384 / 380.1 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.0073, allocations: 7.922 kB / 380.1 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.591e-05/0.007355, allocations: 33.64 kB / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.007488, allocations: 101.3 kB / 380.3 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.928e-05/0.007557, allocations: 40.28 kB / 380.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.764e-05/0.007595, allocations: 34.66 kB / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.007604, allocations: 0 / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.367e-05/0.007667, allocations: 60.25 kB / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.007668, allocations: 0 / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002397/0.007908, allocations: 122.7 kB / 380.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.007988, allocations: 85.05 kB / 380.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.435e-05/0.008053, allocations: 93.84 kB / 380.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.008071, allocations: 29.83 kB / 380.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.699e-05/0.008118, allocations: 80.14 kB / 380.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.008134, allocations: 3.938 kB / 380.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.008169, allocations: 21.66 kB / 380.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.008345, allocations: 310.8 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.764e-05/0.008372, allocations: 25.7 kB / 381.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.522e-05/0.008397, allocations: 29.7 kB / 381.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.763e-05/0.008465, allocations: 60.27 kB / 381.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.008467, allocations: 0 / 381.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001084/0.008575, allocations: 101.1 kB / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.851e-05/0.008613, allocations: 29.7 kB / 381.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.008618, allocations: 0 / 381.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.008635, allocations: 0 / 381.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.008636, allocations: 0 / 381.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.008643, allocations: 3.938 kB / 381.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.494e-05/0.008658, allocations: 4 kB / 381.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.008664, allocations: 0 / 381.4 MB, free: 14.57 MB / 362.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.0001162/0.00878, allocations: 139.5 kB / 381.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.008792, allocations: 3.953 kB / 381.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.192e-05/0.008804, allocations: 11.03 kB / 381.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.008805, allocations: 0 / 381.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.008809, allocations: 0 / 381.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.008814, allocations: 3.938 kB / 381.5 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.008922, allocations: 101.3 kB / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.008925, allocations: 3.984 kB / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.008926, allocations: 0 / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.008927, allocations: 0 / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.008933, allocations: 0 / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.008936, allocations: 4 kB / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.008939, allocations: 3.938 kB / 381.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.00908, allocations: 124.5 kB / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-06/0.009085, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.009096, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.009107, allocations: 4 kB / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.009122, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.009124, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.841e-05/0.009172, allocations: 79.22 kB / 381.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009172, allocations: 0 / 381.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.009382, allocations: 16 kB / 381.9 MB, free: 14.01 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.0003764/0.009758, allocations: 150 kB / 382 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001569/0.009915, allocations: 118.7 kB / 382.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.009917, allocations: 0 / 382.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.985e-05/0.009986, allocations: 81.11 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.01012, allocations: 1.562 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002341/0.01035, allocations: 115.9 kB / 382.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.051e-05/0.01041, allocations: 55.36 kB / 382.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.709e-06/0.01042, allocations: 128 / 382.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.491e-05/0.01043, allocations: 12.5 kB / 382.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01043, allocations: 0 / 382.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of Templates: time 0.003505/0.01394, allocations: 0.6868 MB / 383.1 MB, free: 12.71 MB / 362.7 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.843440855038352]