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.00187/0.00187, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.002293/0.002293, allocations: 165.7 kB / 24.26 MB, free: 176 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.507/1.507, allocations: 177.2 MB / 204.6 MB, free: 5.594 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.3316/0.3316, allocations: 32.8 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 180] 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.194e-06/2.194e-06, allocations: 0 / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.555e-05/3.774e-05, allocations: 9.766 kB / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001688/0.001726, allocations: 493 kB / 375.7 MB, free: 4.531 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.004516, allocations: 1.599 MB / 377.3 MB, free: 2.914 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.502e-05/0.004541, allocations: 0 / 377.3 MB, free: 2.914 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.004554, allocations: 0 / 377.3 MB, free: 2.914 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.071e-06/0.00456, allocations: 0 / 377.3 MB, free: 2.914 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.0008623/0.005422, allocations: 171.1 kB / 377.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.683e-05/0.005479, allocations: 0 / 377.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.00552, allocations: 0 / 377.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.013e-05/0.00555, allocations: 4 kB / 377.5 MB, free: 2.742 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.999e-05/0.00558, allocations: 0 / 377.5 MB, free: 2.742 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/0.005589, allocations: 0 / 377.5 MB, free: 2.742 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004492/0.006038, allocations: 115.9 kB / 377.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.067e-06/0.006047, allocations: 4 kB / 377.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.006071, allocations: 0 / 377.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.006232, allocations: 47.88 kB / 377.7 MB, free: 2.578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.006236, allocations: 3.938 kB / 377.7 MB, free: 2.574 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.006238, allocations: 0 / 377.7 MB, free: 2.574 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.006242, allocations: 0 / 377.7 MB, free: 2.574 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.0003804/0.006622, allocations: 272.1 kB / 377.9 MB, free: 2.273 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.006666, allocations: 15.97 kB / 377.9 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.006719, allocations: 4.938 kB / 377.9 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.006819, allocations: 105.8 kB / 378.1 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.006833, allocations: 384 / 378.1 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.006846, allocations: 8.359 kB / 378.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.006969, allocations: 55.95 kB / 378.1 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.006977, allocations: 192 / 378.1 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.006986, allocations: 4.375 kB / 378.1 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.006993, allocations: 3.938 kB / 378.1 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.791e-05/0.007031, allocations: 29.7 kB / 378.2 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.007185, allocations: 101.3 kB / 378.2 MB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.062e-05/0.007255, allocations: 40.28 kB / 378.3 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.573e-05/0.007291, allocations: 38.66 kB / 378.3 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.007302, allocations: 0 / 378.3 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/0.007365, allocations: 60.25 kB / 378.4 MB, free: 1.703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.007365, allocations: 0 / 378.4 MB, free: 1.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002486/0.007614, allocations: 118.8 kB / 378.5 MB, free: 1.562 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/0.007688, allocations: 85.05 kB / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.482e-05/0.007753, allocations: 93.84 kB / 378.7 MB, free: 1.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.007772, allocations: 25.7 kB / 378.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.007818, allocations: 80.14 kB / 378.8 MB, free: 1.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.007836, allocations: 8.062 kB / 378.8 MB, free: 1.238 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.007868, allocations: 17.72 kB / 378.8 MB, free: 1.215 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.008039, allocations: 310.8 kB / 379.1 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.794e-05/0.008067, allocations: 25.7 kB / 379.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.709e-05/0.008105, allocations: 29.7 kB / 379.2 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.474e-05/0.008179, allocations: 64.27 kB / 379.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.008181, allocations: 0 / 379.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001093/0.00829, allocations: 93.03 kB / 379.3 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.008331, allocations: 29.7 kB / 379.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.008337, allocations: 0 / 379.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.008355, allocations: 4.094 kB / 379.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.008356, allocations: 0 / 379.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.008363, allocations: 3.938 kB / 379.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.00838, allocations: 4 kB / 379.4 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.008389, allocations: 3.984 kB / 379.4 MB, free: 0.5977 MB / 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.0001174/0.008506, allocations: 135.5 kB / 379.5 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.008521, allocations: 11.95 kB / 379.5 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.578e-06/0.00853, allocations: 3 kB / 379.5 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.008532, allocations: 0 / 379.5 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.008536, allocations: 0 / 379.5 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.00854, allocations: 7.938 kB / 379.5 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.008642, allocations: 101.3 kB / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.008643, allocations: 0 / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.008643, allocations: 0 / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.008645, allocations: 0 / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.008651, allocations: 0 / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.008653, allocations: 0 / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.008656, allocations: 8 kB / 379.6 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.00894, allocations: 124.4 kB / 379.7 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-06/0.008946, allocations: 0 / 379.7 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.008959, allocations: 0 / 379.7 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.008971, allocations: 8.031 kB / 379.8 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.008988, allocations: 0 / 379.8 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.008991, allocations: 0 / 379.8 MB, free: 136 kB / 346.7 MB Notification: Performance of sorting global known variables: time 4.817e-05/0.009039, allocations: 79.22 kB / 379.8 MB, free: 56 kB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009039, allocations: 0 / 379.8 MB, free: 56 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002132/0.009252, allocations: 12 kB / 379.8 MB, free: 44 kB / 346.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.000408/0.00966, allocations: 152.3 kB / 380 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001521/0.009812, allocations: 118.8 kB / 380.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.009815, allocations: 0 / 380.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.982e-05/0.009895, allocations: 85.05 kB / 380.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.01003, allocations: 4 kB / 380.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.01028, allocations: 108 kB / 380.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.693e-05/0.01034, allocations: 55.36 kB / 380.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.372e-06/0.01034, allocations: 0 / 380.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.704e-05/0.01036, allocations: 8.5 kB / 380.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01036, allocations: 3.938 kB / 380.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of Templates: time 0.003603/0.01396, allocations: 0.6866 MB / 381.1 MB, free: 14.74 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] 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.640837601036765]