Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002363/0.002363, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002633/0.002633, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.041/3.041, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4892/0.4892, allocations: 46.1 MB / 344.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002899/0.002899, allocations: 81.22 kB / 417.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2517, allocations: 62.43 MB / 480.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.004076/0.2558, allocations: 0.5528 MB / 480.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004237/0.2601, allocations: 1.603 MB / 482.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.139e-05/0.2602, allocations: 4 kB / 482.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.505e-05/0.2602, allocations: 0 / 482.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-06/0.2603, allocations: 0 / 482.3 MB, free: 3.453 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.2619, allocations: 259.4 kB / 482.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.519e-05/0.262, allocations: 0 / 482.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.2622, allocations: 4 kB / 482.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.328e-05/0.2623, allocations: 0 / 482.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.14e-05/0.2623, allocations: 0 / 482.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.2623, allocations: 4 kB / 482.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.2635, allocations: 0.4911 MB / 483 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.2636, allocations: 4 kB / 483.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.611e-05/0.2636, allocations: 0 / 483.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.2642, allocations: 211.7 kB / 483.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2642, allocations: 0 / 483.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2642, allocations: 0 / 483.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.2643, allocations: 0 / 483.3 MB, free: 2.488 MB / 350.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.0007104/0.265, allocations: 381.2 kB / 483.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/0.2651, allocations: 8.031 kB / 483.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.107e-05/0.2651, allocations: 4.938 kB / 483.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.2653, allocations: 160.4 kB / 483.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.2653, allocations: 384 / 483.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2654, allocations: 384 / 483.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.2656, allocations: 41.95 kB / 483.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2656, allocations: 0 / 483.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.2657, allocations: 4 kB / 483.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.2657, allocations: 0 / 483.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.032e-05/0.2657, allocations: 0 / 483.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002192/0.2659, allocations: 149.7 kB / 484 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.064e-05/0.2661, allocations: 14.58 kB / 484 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.588e-05/0.2661, allocations: 4.859 kB / 484 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.2661, allocations: 4.094 kB / 484 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.155e-05/0.2662, allocations: 68.2 kB / 484.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.144e-06/0.2663, allocations: 3.938 kB / 484.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003138/0.2666, allocations: 63.39 kB / 484.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.996e-05/0.2667, allocations: 77.11 kB / 484.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.225e-05/0.2668, allocations: 89.86 kB / 484.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.2668, allocations: 25.7 kB / 484.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.321e-05/0.2669, allocations: 80.14 kB / 484.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.2669, allocations: 0 / 484.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.536e-05/0.267, allocations: 21.84 kB / 484.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.2672, allocations: 314.8 kB / 484.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.7e-05/0.2673, allocations: 0 / 484.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.466e-05/0.2673, allocations: 4 kB / 484.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.605e-05/0.2674, allocations: 64.2 kB / 484.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2674, allocations: 0 / 484.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001351/0.2675, allocations: 63.41 kB / 484.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.501e-05/0.2676, allocations: 45.56 kB / 484.9 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2676, allocations: 4.094 kB / 484.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2677, allocations: 0 / 484.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.274e-06/0.2677, allocations: 0 / 484.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.2677, allocations: 0 / 484.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.2677, allocations: 7.844 kB / 484.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.2678, allocations: 4 kB / 484.9 MB, free: 0.543 MB / 350.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 0.0001933/0.268, allocations: 131.5 kB / 485.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.872e-05/0.268, allocations: 3.938 kB / 485.1 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.409e-05/0.268, allocations: 3.125 kB / 485.1 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.268, allocations: 8 kB / 485.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2681, allocations: 0 / 485.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.2681, allocations: 3.984 kB / 485.1 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.2682, allocations: 141.7 kB / 485.2 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2683, allocations: 0 / 485.2 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-06/0.2683, allocations: 0 / 485.2 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.2683, allocations: 7.875 kB / 485.2 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.2683, allocations: 4 kB / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2683, allocations: 0 / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2683, allocations: 0 / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.2685, allocations: 98.83 kB / 485.3 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.826e-05/0.2686, allocations: 77.11 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.2687, allocations: 7.922 kB / 485.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.757e-05/0.2687, allocations: 0 / 485.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.2687, allocations: 3.984 kB / 485.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.2688, allocations: 4 kB / 485.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.754e-05/0.2688, allocations: 75.28 kB / 485.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2688, allocations: 32 / 485.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006022/0.2694, allocations: 64 kB / 485.6 MB, free: 15.82 MB / 366.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.0008636/0.2703, allocations: 195.8 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001819/0.2705, allocations: 71.28 kB / 485.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.2705, allocations: 0 / 485.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.864e-05/0.2706, allocations: 51.41 kB / 485.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.2709, allocations: 9.781 kB / 485.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003272/0.2712, allocations: 114.6 kB / 486 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.2717, allocations: 0.673 MB / 486.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.64e-05/0.2718, allocations: 7.438 kB / 486.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2718, allocations: 0 / 486.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Templates: time 0.005449/0.2772, allocations: 1.275 MB / 487.9 MB, free: 13.35 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches