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.001743/0.001743, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.002471/0.002471, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 8 MB / 206.1 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.2154/0.2154, allocations: 44.91 MB / 359.6 MB, free: 6.297 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 70.09 kB / 0.4943 GB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.303, allocations: 65.46 MB / 0.5582 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001675/0.3047, allocations: 0.4936 MB / 0.5587 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3062, allocations: 0.7821 MB / 0.5595 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.463e-05/0.3062, allocations: 0 / 0.5595 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.849e-06/0.3062, allocations: 0 / 0.5595 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.1e-06/0.3062, allocations: 0 / 0.5595 GB, free: 6.492 MB / 398.1 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.001889/0.3081, allocations: 0.6811 MB / 0.5601 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.581e-05/0.3081, allocations: 0 / 0.5601 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.571e-05/0.3082, allocations: 0 / 0.5601 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.354e-05/0.3082, allocations: 4 kB / 0.5601 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.515e-05/0.3082, allocations: 3.938 kB / 0.5601 GB, free: 5.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.34e-06/0.3082, allocations: 0 / 0.5601 GB, free: 5.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009007/0.3091, allocations: 479.1 kB / 0.5606 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-06/0.3091, allocations: 0 / 0.5606 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.3091, allocations: 8 kB / 0.5606 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005139/0.3097, allocations: 353.5 kB / 0.5609 GB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3097, allocations: 4 kB / 0.561 GB, free: 4.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3097, allocations: 0 / 0.561 GB, free: 4.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3097, allocations: 0 / 0.561 GB, free: 4.98 MB / 398.1 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.000399/0.3101, allocations: 315.6 kB / 0.5613 GB, free: 4.633 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3101, allocations: 8.031 kB / 0.5613 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.3101, allocations: 0.9375 kB / 0.5613 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.341e-05/0.3102, allocations: 111.6 kB / 0.5614 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.3102, allocations: 4.375 kB / 0.5614 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.3103, allocations: 4.312 kB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.133e-05/0.3103, allocations: 34.25 kB / 0.5614 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3104, allocations: 4.172 kB / 0.5614 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3104, allocations: 3.938 kB / 0.5614 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3104, allocations: 0 / 0.5614 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.448e-05/0.3104, allocations: 0 / 0.5614 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.3105, allocations: 128.7 kB / 0.5615 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.426e-05/0.3106, allocations: 22.58 kB / 0.5616 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.3106, allocations: 8.797 kB / 0.5616 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.585e-06/0.3106, allocations: 0 / 0.5616 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/0.3106, allocations: 60.36 kB / 0.5616 GB, free: 4.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3106, allocations: 0 / 0.5616 GB, free: 4.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.3108, allocations: 67.33 kB / 0.5617 GB, free: 4.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.3109, allocations: 77.11 kB / 0.5618 GB, free: 3.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.96e-05/0.3109, allocations: 101.9 kB / 0.5619 GB, free: 3.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.311, allocations: 25.7 kB / 0.5619 GB, free: 3.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.357e-05/0.311, allocations: 80.14 kB / 0.562 GB, free: 3.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.311, allocations: 0 / 0.562 GB, free: 3.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.311, allocations: 17.72 kB / 0.562 GB, free: 3.734 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3112, allocations: 310.8 kB / 0.5623 GB, free: 3.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.103e-05/0.3112, allocations: 3.938 kB / 0.5623 GB, free: 3.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.169e-05/0.3112, allocations: 7.984 kB / 0.5623 GB, free: 3.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.278e-05/0.3113, allocations: 64.33 kB / 0.5623 GB, free: 3.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3113, allocations: 0 / 0.5623 GB, free: 3.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.108e-05/0.3113, allocations: 59.41 kB / 0.5624 GB, free: 3.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/0.3114, allocations: 32.05 kB / 0.5624 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3114, allocations: 7.984 kB / 0.5624 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.3114, allocations: 3.938 kB / 0.5624 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3114, allocations: 0 / 0.5624 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.3114, allocations: 0 / 0.5624 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.465e-05/0.3114, allocations: 3.938 kB / 0.5624 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.3114, allocations: 0 / 0.5624 GB, free: 3.211 MB / 398.1 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 9.674e-05/0.3115, allocations: 147.5 kB / 0.5626 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-06/0.3115, allocations: 0 / 0.5626 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.224e-05/0.3115, allocations: 6.938 kB / 0.5626 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3115, allocations: 0 / 0.5626 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3115, allocations: 0 / 0.5626 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3115, allocations: 4 kB / 0.5626 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.3117, allocations: 120.8 kB / 0.5627 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3117, allocations: 0 / 0.5627 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3117, allocations: 0 / 0.5627 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.3117, allocations: 4 kB / 0.5627 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.3117, allocations: 11.88 kB / 0.5627 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3117, allocations: 0 / 0.5627 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3117, allocations: 0 / 0.5627 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.3118, allocations: 86.83 kB / 0.5628 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-06/0.3118, allocations: 4 kB / 0.5628 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.3118, allocations: 3.938 kB / 0.5628 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.3118, allocations: 4.031 kB / 0.5628 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.284e-05/0.3118, allocations: 0 / 0.5628 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.3118, allocations: 8 kB / 0.5628 GB, free: 2.734 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.553e-05/0.3119, allocations: 79.22 kB / 0.5629 GB, free: 2.656 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3119, allocations: 0 / 0.5629 GB, free: 2.656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.3122, allocations: 83.72 kB / 0.563 GB, free: 2.574 MB / 398.1 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.0005056/0.3127, allocations: 221.1 kB / 0.5632 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001058/0.3128, allocations: 59.41 kB / 0.5633 GB, free: 2.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3128, allocations: 0 / 0.5633 GB, free: 2.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.791e-05/0.3129, allocations: 55.41 kB / 0.5633 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.313, allocations: 0 / 0.5633 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001981/0.3132, allocations: 114.7 kB / 0.5634 GB, free: 2.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.3135, allocations: 0.669 MB / 0.5641 GB, free: 1.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.207e-05/0.3135, allocations: 7.438 kB / 0.5641 GB, free: 1.367 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3135, allocations: 4 kB / 0.5641 GB, free: 1.363 MB / 398.1 MB Notification: Performance of Templates: time 0.004106/0.3176, allocations: 1.786 MB / 0.5658 GB, free: 15.57 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins1/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: 8.548103305045515]