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.002025/0.002025, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002525/0.002525, allocations: 169.6 kB / 24.28 MB, free: 152 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.557/1.557, allocations: 177.1 MB / 204.6 MB, free: 5.617 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.3461/0.3461, allocations: 34.27 MB / 295.3 MB, free: 0.6953 MB / 266.7 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.834e-06/1.834e-06, allocations: 0 / 377.3 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.48e-05/3.663e-05, allocations: 2.312 kB / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002314/0.002351, allocations: 0.4893 MB / 377.7 MB, free: 2.504 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003831/0.006182, allocations: 1.622 MB / 379.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.382e-05/0.006215, allocations: 0 / 379.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.863e-05/0.006234, allocations: 0 / 379.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.275e-06/0.006242, allocations: 0 / 379.4 MB, free: 0.8633 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.001052/0.007294, allocations: 167.1 kB / 379.5 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.289e-05/0.007357, allocations: 0 / 379.5 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.598e-05/0.007413, allocations: 0 / 379.5 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.535e-05/0.007468, allocations: 7.984 kB / 379.5 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.632e-05/0.007504, allocations: 3.938 kB / 379.5 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.007517, allocations: 4 kB / 379.6 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005542/0.008071, allocations: 111.9 kB / 379.7 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.258e-05/0.008084, allocations: 4 kB / 379.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.008105, allocations: 3.938 kB / 379.7 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.008319, allocations: 47.88 kB / 379.7 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.008322, allocations: 0 / 379.7 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.008323, allocations: 0 / 379.7 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.008328, allocations: 0 / 379.7 MB, free: 0.5195 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.000543/0.008871, allocations: 374.1 kB / 380.1 MB, free: 116 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.008924, allocations: 16.03 kB / 380.1 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.008971, allocations: 0.9375 kB / 380.1 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.009131, allocations: 108.6 kB / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.009144, allocations: 384 / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.009157, allocations: 4.375 kB / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.009287, allocations: 51.97 kB / 380.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.009296, allocations: 192 / 380.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.009312, allocations: 4.375 kB / 380.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.009322, allocations: 3.938 kB / 380.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.538e-05/0.009367, allocations: 25.7 kB / 380.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001864/0.009553, allocations: 120.6 kB / 380.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.009655, allocations: 52.7 kB / 380.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.832e-05/0.009714, allocations: 41.48 kB / 380.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.009725, allocations: 0 / 380.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.132e-05/0.009806, allocations: 59.09 kB / 380.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.009807, allocations: 0 / 380.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003149/0.01012, allocations: 118.8 kB / 380.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.01021, allocations: 85.05 kB / 380.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.01034, allocations: 146.2 kB / 380.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.01036, allocations: 25.7 kB / 380.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.842e-05/0.01045, allocations: 131 kB / 381.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.01048, allocations: 7.875 kB / 381.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-05/0.01053, allocations: 23.38 kB / 381.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003559/0.01089, allocations: 496.1 kB / 381.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.297e-05/0.01093, allocations: 29.7 kB / 381.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.361e-05/0.01097, allocations: 25.7 kB / 381.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.191e-05/0.01106, allocations: 67.09 kB / 381.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01106, allocations: 0 / 381.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000158/0.01122, allocations: 97.08 kB / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.01126, allocations: 33.8 kB / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.01127, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.01128, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-06/0.01129, allocations: 4 kB / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.01129, allocations: 7.875 kB / 381.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.881e-05/0.01131, allocations: 0 / 381.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.01132, allocations: 0 / 381.8 MB, free: 14.1 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.0001879/0.01151, allocations: 186.3 kB / 382 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.01152, allocations: 3.953 kB / 382 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.313e-05/0.01154, allocations: 3 kB / 382 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.01154, allocations: 4 kB / 382 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.01155, allocations: 4 kB / 382 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.01155, allocations: 3.938 kB / 382 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.0117, allocations: 108.6 kB / 382.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.0117, allocations: 0 / 382.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.0117, allocations: 0 / 382.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.0117, allocations: 0 / 382.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.01172, allocations: 4 kB / 382.1 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.01172, allocations: 3.984 kB / 382.1 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01172, allocations: 0 / 382.1 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.01194, allocations: 131.7 kB / 382.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.402e-05/0.01196, allocations: 8.016 kB / 382.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.01197, allocations: 4 kB / 382.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.01199, allocations: 0 / 382.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.8e-05/0.01201, allocations: 0 / 382.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.01201, allocations: 3.938 kB / 382.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.88e-05/0.01211, allocations: 123.1 kB / 382.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.01211, allocations: 4 kB / 382.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003542/0.01246, allocations: 12 kB / 382.4 MB, free: 13.42 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.0005234/0.01299, allocations: 159.7 kB / 382.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002195/0.01321, allocations: 118.5 kB / 382.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01321, allocations: 0 / 382.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.01331, allocations: 88.8 kB / 382.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.01351, allocations: 7.938 kB / 382.8 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003143/0.01383, allocations: 121.6 kB / 382.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.219e-05/0.0139, allocations: 55.36 kB / 383 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.801e-06/0.0139, allocations: 0 / 383 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.875e-05/0.01392, allocations: 12.62 kB / 383 MB, free: 12.77 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01392, allocations: 0 / 383 MB, free: 12.77 MB / 362.7 MB Notification: Performance of Templates: time 0.004896/0.01882, allocations: 0.6844 MB / 383.7 MB, free: 12.08 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] 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.865264473017305]