Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.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.001965/0.001965, 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.002105/0.002105, allocations: 169.3 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.569/1.569, allocations: 177.1 MB / 204.6 MB, free: 5.609 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.3501/0.3501, allocations: 32.81 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.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 375.2 MB, free: 5.035 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.276e-05/3.388e-05, allocations: 6.25 kB / 375.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001663/0.001697, allocations: 0.4999 MB / 375.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.003216, allocations: 0.7371 MB / 376.5 MB, free: 3.785 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.259e-05/0.003228, allocations: 0 / 376.5 MB, free: 3.785 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.965e-06/0.003236, allocations: 0 / 376.5 MB, free: 3.785 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.218e-06/0.00324, allocations: 0 / 376.5 MB, free: 3.785 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.005074, allocations: 0.6496 MB / 377.1 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.333e-05/0.005118, allocations: 0 / 377.1 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.076e-05/0.005148, allocations: 0 / 377.1 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.869e-05/0.005187, allocations: 4 kB / 377.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.828e-05/0.005205, allocations: 0 / 377.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.005213, allocations: 0 / 377.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008769/0.00609, allocations: 419 kB / 377.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.974e-06/0.006097, allocations: 0 / 377.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.072e-05/0.006117, allocations: 0 / 377.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006322/0.00675, allocations: 379 kB / 377.9 MB, free: 2.348 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.006753, allocations: 0 / 377.9 MB, free: 2.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006754, allocations: 0 / 377.9 MB, free: 2.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.006759, allocations: 0 / 377.9 MB, free: 2.348 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.0005422/0.007301, allocations: 413.6 kB / 378.3 MB, free: 1.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.00734, allocations: 12.02 kB / 378.3 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.782e-05/0.007388, allocations: 0.9375 kB / 378.3 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.599e-05/0.007484, allocations: 104.6 kB / 378.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.007497, allocations: 4.375 kB / 378.4 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.007508, allocations: 8.297 kB / 378.4 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.007617, allocations: 63.91 kB / 378.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.007625, allocations: 4.188 kB / 378.5 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.007635, allocations: 4.375 kB / 378.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.007638, allocations: 384 / 378.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.575e-05/0.007674, allocations: 29.64 kB / 378.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.007816, allocations: 112.6 kB / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/0.0079, allocations: 48.77 kB / 378.7 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.944e-05/0.00795, allocations: 37.48 kB / 378.7 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.007961, allocations: 3.938 kB / 378.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.409e-05/0.008025, allocations: 63.09 kB / 378.8 MB, free: 1.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.008026, allocations: 0 / 378.8 MB, free: 1.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002228/0.008248, allocations: 122.8 kB / 378.9 MB, free: 1.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.008312, allocations: 77.11 kB / 379 MB, free: 1.051 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.69e-05/0.008399, allocations: 142.2 kB / 379.1 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.008418, allocations: 25.7 kB / 379.2 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.684e-05/0.008485, allocations: 130.9 kB / 379.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.008501, allocations: 0 / 379.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.008533, allocations: 19.38 kB / 379.3 MB, free: 0.707 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002532/0.008787, allocations: 0.4883 MB / 379.8 MB, free: 212 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.843e-05/0.008815, allocations: 29.7 kB / 379.8 MB, free: 176 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.67e-05/0.008842, allocations: 29.64 kB / 379.9 MB, free: 140 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.009147, allocations: 71.28 kB / 379.9 MB, free: 52 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.009148, allocations: 0 / 379.9 MB, free: 52 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001129/0.009261, allocations: 89.09 kB / 380 MB, free: 15.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.009302, allocations: 29.7 kB / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.009306, allocations: 0 / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.009324, allocations: 4 kB / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.009324, allocations: 0 / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.00933, allocations: 0 / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.009346, allocations: 3.938 kB / 380 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.009353, allocations: 0 / 380 MB, free: 15.9 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.0001411/0.009494, allocations: 198.2 kB / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.009505, allocations: 3.953 kB / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.604e-06/0.009513, allocations: 3 kB / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.009513, allocations: 0 / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.009517, allocations: 7.938 kB / 380.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.009519, allocations: 0 / 380.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.009623, allocations: 108.6 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.009623, allocations: 0 / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.009624, allocations: 0 / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.31e-07/0.009625, allocations: 0 / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-06/0.009631, allocations: 8 kB / 380.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.009632, allocations: 0 / 380.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.009635, allocations: 3.984 kB / 380.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001589/0.009794, allocations: 127.8 kB / 380.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.456e-06/0.009803, allocations: 3.984 kB / 380.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.009817, allocations: 4 kB / 380.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.029e-05/0.009827, allocations: 4 kB / 380.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.409e-05/0.009841, allocations: 0 / 380.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.009844, allocations: 3.938 kB / 380.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.463e-05/0.009908, allocations: 119.2 kB / 380.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.009908, allocations: 8.031 kB / 380.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003466/0.01025, allocations: 83.67 kB / 380.7 MB, free: 15.14 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.000653/0.01091, allocations: 247.4 kB / 381 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.01106, allocations: 122.5 kB / 381.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.01106, allocations: 0 / 381.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.026e-05/0.01113, allocations: 88.8 kB / 381.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001165/0.01125, allocations: 4 kB / 381.2 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002346/0.01149, allocations: 117.8 kB / 381.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.9e-05/0.01154, allocations: 55.36 kB / 381.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.172e-06/0.01155, allocations: 3.938 kB / 381.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.427e-05/0.01157, allocations: 8.5 kB / 381.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01157, allocations: 0 / 381.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of Templates: time 0.005913/0.01748, allocations: 1.983 MB / 383.3 MB, free: 12.42 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.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.909506159950979]