Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009457/0.0009457, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.0009513/0.0009513, allocations: 170.4 kB / 25.61 MB, free: 8.902 MB / 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 0.929/0.929, allocations: 177.1 MB / 206 MB, free: 4.531 MB / 186.7 MB " [Timeout remaining time 179] 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.1444/0.1444, allocations: 34.27 MB / 296.9 MB, free: 13.95 MB / 282.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.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 379.3 MB, free: 23.46 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.937e-05/3.154e-05, allocations: 3.734 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001226/0.001258, allocations: 0.4892 MB / 379.8 MB, free: 22.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009822/0.00224, allocations: 0.7409 MB / 380.5 MB, free: 22.21 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.92e-05/0.002259, allocations: 0 / 380.5 MB, free: 22.21 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.002273, allocations: 0 / 380.5 MB, free: 22.21 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.284e-06/0.00228, allocations: 0 / 380.5 MB, free: 22.21 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.00138/0.00366, allocations: 0.6457 MB / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.354e-05/0.003714, allocations: 0 / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.625e-05/0.00375, allocations: 4 kB / 381.1 MB, free: 21.56 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.575e-05/0.003776, allocations: 4 kB / 381.1 MB, free: 21.56 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.81e-05/0.003794, allocations: 0 / 381.1 MB, free: 21.56 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-06/0.0038, allocations: 0 / 381.1 MB, free: 21.56 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005264/0.004327, allocations: 415 kB / 381.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-06/0.004334, allocations: 0 / 381.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.378e-05/0.004348, allocations: 4 kB / 381.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.004728, allocations: 383 kB / 381.9 MB, free: 20.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.00473, allocations: 0 / 381.9 MB, free: 20.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.004731, allocations: 0 / 381.9 MB, free: 20.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.004736, allocations: 0 / 381.9 MB, free: 20.77 MB / 314.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.0002591/0.004995, allocations: 417.5 kB / 382.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.00503, allocations: 12.03 kB / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.005055, allocations: 0.9375 kB / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.399e-05/0.005099, allocations: 108.6 kB / 382.5 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.00511, allocations: 384 / 382.5 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-06/0.005116, allocations: 4.375 kB / 382.5 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.988e-05/0.005176, allocations: 55.97 kB / 382.5 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.005183, allocations: 192 / 382.5 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.00519, allocations: 4.375 kB / 382.5 MB, free: 20.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.005195, allocations: 384 / 382.5 MB, free: 20.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.264e-05/0.005208, allocations: 33.62 kB / 382.6 MB, free: 20.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.019e-05/0.005268, allocations: 97.27 kB / 382.7 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.353e-05/0.005301, allocations: 52.7 kB / 382.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.172e-05/0.005313, allocations: 37.47 kB / 382.7 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-06/0.005316, allocations: 4 kB / 382.7 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.005337, allocations: 63.08 kB / 382.8 MB, free: 19.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.005338, allocations: 4 kB / 382.8 MB, free: 19.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001292/0.005467, allocations: 114.8 kB / 382.9 MB, free: 19.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.005491, allocations: 81.11 kB / 383 MB, free: 19.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.112e-05/0.005512, allocations: 146.2 kB / 383.1 MB, free: 19.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.408e-06/0.005517, allocations: 25.7 kB / 383.2 MB, free: 19.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.062e-05/0.005527, allocations: 130.8 kB / 383.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.005542, allocations: 0 / 383.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.881e-05/0.005561, allocations: 23.36 kB / 383.3 MB, free: 19.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.727e-05/0.005618, allocations: 496.1 kB / 383.8 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/0.00563, allocations: 25.83 kB / 383.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.188e-06/0.005639, allocations: 29.7 kB / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.3e-05/0.005672, allocations: 63.09 kB / 383.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.005674, allocations: 0 / 383.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.645e-05/0.005731, allocations: 89.09 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.005755, allocations: 37.7 kB / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.00576, allocations: 0 / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.005769, allocations: 0 / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.913e-06/0.005771, allocations: 3.938 kB / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.005774, allocations: 7.922 kB / 384.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.286e-05/0.005787, allocations: 4.094 kB / 384.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.005793, allocations: 0 / 384.1 MB, free: 18.35 MB / 314.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 4.605e-05/0.005839, allocations: 190.2 kB / 384.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-06/0.005844, allocations: 352 / 384.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.576e-06/0.005853, allocations: 7 kB / 384.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.005855, allocations: 0 / 384.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.005856, allocations: 0 / 384.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.005859, allocations: 0 / 384.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.321e-05/0.005903, allocations: 93.2 kB / 384.3 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.005904, allocations: 4 kB / 384.3 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.005905, allocations: 8 kB / 384.4 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.01e-07/0.005905, allocations: 0 / 384.4 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-06/0.00591, allocations: 0 / 384.4 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.005911, allocations: 3.984 kB / 384.4 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.005912, allocations: 0 / 384.4 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.747e-05/0.005969, allocations: 139.7 kB / 384.5 MB, free: 17.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-06/0.005973, allocations: 3.984 kB / 384.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-06/0.005983, allocations: 4 kB / 384.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.379e-06/0.005987, allocations: 0 / 384.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.335e-06/0.005996, allocations: 0 / 384.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-06/0.005997, allocations: 0 / 384.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.269e-05/0.00601, allocations: 123.2 kB / 384.6 MB, free: 17.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00601, allocations: 4 kB / 384.6 MB, free: 17.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.006264, allocations: 79.73 kB / 384.7 MB, free: 17.62 MB / 314.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.0004124/0.006676, allocations: 246.6 kB / 384.9 MB, free: 17.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.771e-05/0.006774, allocations: 122.5 kB / 385.1 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.006775, allocations: 0 / 385.1 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.86e-05/0.006794, allocations: 88.86 kB / 385.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.935e-05/0.006893, allocations: 9.828 kB / 385.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001488/0.007042, allocations: 111.5 kB / 385.3 MB, free: 16.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.94e-05/0.007061, allocations: 59.22 kB / 385.3 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.312e-06/0.007068, allocations: 0 / 385.3 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.609e-05/0.007094, allocations: 74.19 kB / 385.4 MB, free: 16.82 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.007095, allocations: 0 / 385.4 MB, free: 16.82 MB / 314.7 MB Notification: Performance of Templates: time 0.003738/0.01083, allocations: 2.359 MB / 387.8 MB, free: 14.46 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestVectors/TestVectors.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0471902890130877]