Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 97.2 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 177.6 kB / 18.91 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.3 MB / 243 MB, free: 14.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2091/0.2091, allocations: 44.25 MB / 338.3 MB, free: 2.398 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005587/0.0005587, allocations: 9.188 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1407, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0006319/0.1414, allocations: 217.3 kB / 473.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.1446, allocations: 2.114 MB / 475.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.096e-05/0.1446, allocations: 0 / 475.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.1446, allocations: 0 / 475.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.1446, allocations: 0 / 475.2 MB, free: 10.96 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:485:3-574:17:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2b‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.1466, allocations: 0.6455 MB / 475.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.424e-05/0.1467, allocations: 7.938 kB / 475.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.592e-05/0.1467, allocations: 0 / 475.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.68e-05/0.1467, allocations: 0 / 475.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.827e-05/0.1468, allocations: 11.97 kB / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-06/0.1468, allocations: 0 / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.1489, allocations: 1.385 MB / 477.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.1489, allocations: 4 kB / 477.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.522e-05/0.149, allocations: 33.58 kB / 477.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.1503, allocations: 1.162 MB / 478.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1503, allocations: 0 / 478.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1503, allocations: 0 / 478.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.1503, allocations: 0 / 478.5 MB, free: 7.711 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.0008029/0.1511, allocations: 413.2 kB / 478.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1512, allocations: 8.031 kB / 478.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.1512, allocations: 4.938 kB / 478.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.818e-05/0.1513, allocations: 168.4 kB / 479.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.1513, allocations: 384 / 479.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.1514, allocations: 4.125 kB / 479.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.826e-05/0.1515, allocations: 25.7 kB / 479.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1515, allocations: 7.984 kB / 479.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-06/0.1515, allocations: 0 / 479.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1515, allocations: 0 / 479.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.1515, allocations: 0 / 479.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001404/0.1517, allocations: 149.6 kB / 479.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.388e-05/0.1517, allocations: 22.61 kB / 479.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.585e-05/0.1517, allocations: 8.797 kB / 479.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-06/0.1518, allocations: 0 / 479.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.908e-05/0.1518, allocations: 64.31 kB / 479.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.292e-06/0.1518, allocations: 0 / 479.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001656/0.152, allocations: 67.33 kB / 479.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.152, allocations: 81.23 kB / 479.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.618e-05/0.1521, allocations: 93.86 kB / 479.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.1521, allocations: 25.7 kB / 479.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.415e-05/0.1521, allocations: 80.14 kB / 479.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.1522, allocations: 3.906 kB / 479.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.086e-05/0.1522, allocations: 9.719 kB / 479.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1523, allocations: 318.8 kB / 480 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.965e-06/0.1523, allocations: 0 / 480 MB, free: 5.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-06/0.1523, allocations: 4 kB / 480 MB, free: 5.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.51e-05/0.1524, allocations: 60.27 kB / 480.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1524, allocations: 0 / 480.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.411e-05/0.1525, allocations: 71.28 kB / 480.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.1525, allocations: 37.62 kB / 480.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1525, allocations: 0 / 480.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1526, allocations: 0 / 480.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.1526, allocations: 0 / 480.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1526, allocations: 3.938 kB / 480.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.775e-05/0.1526, allocations: 12.09 kB / 480.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.1526, allocations: 0 / 480.2 MB, free: 5.73 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 9.159e-05/0.1527, allocations: 131.8 kB / 480.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.1527, allocations: 7.938 kB / 480.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.1527, allocations: 3.125 kB / 480.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1527, allocations: 3.984 kB / 480.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1528, allocations: 0 / 480.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1528, allocations: 3.984 kB / 480.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.1529, allocations: 145.7 kB / 480.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1529, allocations: 3.938 kB / 480.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-06/0.1529, allocations: 8 kB / 480.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1529, allocations: 0 / 480.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.1529, allocations: 0 / 480.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.1529, allocations: 0 / 480.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1529, allocations: 0 / 480.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.612e-05/0.153, allocations: 94.77 kB / 480.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.451e-05/0.1531, allocations: 84.98 kB / 480.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.1531, allocations: 8.016 kB / 480.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.157e-06/0.1531, allocations: 0 / 480.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.41e-05/0.1531, allocations: 4 kB / 480.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-06/0.1531, allocations: 0 / 480.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.871e-05/0.1532, allocations: 75.28 kB / 480.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1532, allocations: 0 / 480.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009973/0.1542, allocations: 268 kB / 481 MB, free: 4.797 MB / 350.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.001556/0.1557, allocations: 410.4 kB / 481.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1558, allocations: 67.41 kB / 481.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1558, allocations: 0 / 481.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.366e-05/0.1559, allocations: 59.33 kB / 481.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.156, allocations: 7.938 kB / 481.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001825/0.1562, allocations: 96.47 kB / 481.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.1565, allocations: 0.6731 MB / 482.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.537e-05/0.1565, allocations: 7.438 kB / 482.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1565, allocations: 0 / 482.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of Templates: time 0.0114/0.1679, allocations: 6.744 MB / 489.1 MB, free: 12.66 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2b/TestMatrices2b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches