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.00107/0.00107, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001077/0.001077, allocations: 194 kB / 18.77 MB, free: 4.742 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.42 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.2044/0.2044, allocations: 44.18 MB / 336.8 MB, free: 2.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 69.22 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1146, allocations: 60.81 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001651/0.1163, allocations: 0.5528 MB / 469.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.1192, allocations: 2.152 MB / 471.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.095e-05/0.1192, allocations: 0 / 471.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.787e-05/0.1192, allocations: 0 / 471.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.1193, allocations: 0 / 471.9 MB, free: 12.12 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.001895/0.1212, allocations: 0.6467 MB / 472.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.381e-05/0.1212, allocations: 4 kB / 472.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.474e-05/0.1213, allocations: 0 / 472.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.02e-05/0.1213, allocations: 0 / 472.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.27e-05/0.1213, allocations: 0 / 472.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.1213, allocations: 8 kB / 472.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.1235, allocations: 1.385 MB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.203e-05/0.1235, allocations: 4 kB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.6e-05/0.1235, allocations: 7.922 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.1247, allocations: 1.158 MB / 475.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1247, allocations: 4 kB / 475.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1247, allocations: 4 kB / 475.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1247, allocations: 0 / 475.1 MB, free: 8.902 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.0005995/0.1253, allocations: 417.2 kB / 475.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1254, allocations: 8.031 kB / 475.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.1254, allocations: 0.9375 kB / 475.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.723e-05/0.1255, allocations: 164.3 kB / 475.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1255, allocations: 384 / 475.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.1256, allocations: 8.125 kB / 475.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.276e-05/0.1256, allocations: 29.69 kB / 475.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1257, allocations: 4 kB / 475.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1257, allocations: 3.984 kB / 475.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1257, allocations: 4 kB / 475.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.1257, allocations: 0 / 475.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.1258, allocations: 145.7 kB / 475.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.396e-05/0.1259, allocations: 22.55 kB / 475.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.533e-05/0.1259, allocations: 8.797 kB / 475.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.1259, allocations: 4 kB / 475.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.126, allocations: 60.25 kB / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.126, allocations: 0 / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.1262, allocations: 63.47 kB / 476 MB, free: 7.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.1262, allocations: 81.11 kB / 476.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.929e-05/0.1263, allocations: 89.86 kB / 476.2 MB, free: 7.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.1263, allocations: 29.64 kB / 476.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.55e-05/0.1263, allocations: 80.14 kB / 476.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.1264, allocations: 11.97 kB / 476.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.1264, allocations: 17.7 kB / 476.3 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1265, allocations: 310.8 kB / 476.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.687e-06/0.1265, allocations: 0 / 476.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.839e-06/0.1265, allocations: 0 / 476.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.149e-05/0.1266, allocations: 64.27 kB / 476.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1266, allocations: 0 / 476.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.914e-05/0.1267, allocations: 71.39 kB / 476.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.1267, allocations: 29.7 kB / 476.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.1267, allocations: 0 / 476.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1268, allocations: 0 / 476.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.1268, allocations: 3.938 kB / 476.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1268, allocations: 7.938 kB / 476.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.613e-05/0.1268, allocations: 0 / 476.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1268, allocations: 0 / 476.8 MB, free: 6.926 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 8.819e-05/0.1269, allocations: 135.8 kB / 476.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.1269, allocations: 15.95 kB / 476.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.1269, allocations: 3.125 kB / 476.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1269, allocations: 0 / 476.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.127, allocations: 0 / 476.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.127, allocations: 0 / 476.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.1271, allocations: 145.7 kB / 477.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1271, allocations: 3.938 kB / 477.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.015e-06/0.1271, allocations: 4 kB / 477.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.1271, allocations: 0 / 477.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1271, allocations: 3.984 kB / 477.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1271, allocations: 0 / 477.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1271, allocations: 4 kB / 477.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.476e-05/0.1272, allocations: 86.84 kB / 477.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.1273, allocations: 88.97 kB / 477.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.1273, allocations: 0 / 477.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.242e-05/0.1273, allocations: 4 kB / 477.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.1273, allocations: 3.938 kB / 477.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1273, allocations: 0 / 477.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.862e-05/0.1273, allocations: 83.31 kB / 477.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1274, allocations: 0 / 477.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008424/0.1282, allocations: 272 kB / 477.6 MB, free: 5.98 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.001328/0.1295, allocations: 411.1 kB / 478 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.1296, allocations: 63.39 kB / 478.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1297, allocations: 0 / 478.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.254e-05/0.1297, allocations: 55.41 kB / 478.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.1298, allocations: 4.062 kB / 478.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001945/0.13, allocations: 104.5 kB / 478.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.1303, allocations: 0.677 MB / 478.9 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.004e-05/0.1303, allocations: 7.438 kB / 478.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1303, allocations: 4 kB / 478.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.1412, allocations: 6.74 MB / 485.7 MB, free: 13.84 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