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.001515/0.001515, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.00168/0.00168, allocations: 189.3 kB / 18.9 MB, free: 4.48 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.335/1.335, allocations: 222.9 MB / 242.6 MB, free: 13.73 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.2099/0.2099, allocations: 44.17 MB / 336.9 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.83 kB / 408.5 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 60.83 MB / 469.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001983/0.1092, allocations: 0.5488 MB / 469.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.1121, allocations: 2.09 MB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.815e-05/0.1121, allocations: 0 / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.1121, allocations: 0 / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.1121, allocations: 0 / 472 MB, free: 12.05 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.001994/0.1141, allocations: 0.669 MB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.156e-05/0.1142, allocations: 8 kB / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.069e-05/0.1142, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.233e-05/0.1143, allocations: 4 kB / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.584e-05/0.1143, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.919e-06/0.1143, allocations: 0 / 472.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.1161, allocations: 1.416 MB / 474.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.338e-06/0.1161, allocations: 3.938 kB / 474.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.152e-05/0.1161, allocations: 4 kB / 474.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.1173, allocations: 1.158 MB / 475.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1173, allocations: 4 kB / 475.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1173, allocations: 0 / 475.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1173, allocations: 4 kB / 475.3 MB, free: 8.785 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.0007286/0.1181, allocations: 413.2 kB / 475.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1181, allocations: 8.031 kB / 475.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.551e-05/0.1181, allocations: 0.9375 kB / 475.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.972e-05/0.1182, allocations: 164.4 kB / 475.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.1182, allocations: 384 / 475.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.1183, allocations: 12.11 kB / 475.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.909e-05/0.1184, allocations: 29.7 kB / 475.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.44e-06/0.1184, allocations: 0 / 475.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.1184, allocations: 0 / 475.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.1184, allocations: 0 / 475.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.061e-05/0.1184, allocations: 7.938 kB / 475.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.1185, allocations: 149.7 kB / 476.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.66e-05/0.1186, allocations: 18.61 kB / 476.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.1186, allocations: 8.797 kB / 476.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-06/0.1186, allocations: 4 kB / 476.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.1186, allocations: 56.27 kB / 476.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1186, allocations: 0 / 476.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001477/0.1188, allocations: 71.39 kB / 476.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.543e-05/0.1188, allocations: 77.11 kB / 476.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.335e-05/0.1189, allocations: 89.86 kB / 476.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.1189, allocations: 29.7 kB / 476.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.845e-05/0.1189, allocations: 84.27 kB / 476.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.119, allocations: 3.906 kB / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.119, allocations: 9.719 kB / 476.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.117e-05/0.1191, allocations: 318.8 kB / 476.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-06/0.1191, allocations: 0 / 476.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.809e-06/0.1191, allocations: 0 / 476.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.304e-05/0.1192, allocations: 64.25 kB / 476.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1192, allocations: 0 / 476.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.036e-05/0.1192, allocations: 75.28 kB / 476.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.1193, allocations: 33.7 kB / 477 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1193, allocations: 0 / 477 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.1193, allocations: 3.938 kB / 477 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.244e-06/0.1193, allocations: 3.984 kB / 477 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1193, allocations: 3.984 kB / 477 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.547e-05/0.1193, allocations: 4 kB / 477 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1194, allocations: 0 / 477 MB, free: 6.805 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 7.399e-05/0.1194, allocations: 131.9 kB / 477.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.1194, allocations: 11.94 kB / 477.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.039e-05/0.1195, allocations: 3.125 kB / 477.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1195, allocations: 0 / 477.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1195, allocations: 0 / 477.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1195, allocations: 0 / 477.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.742e-05/0.1196, allocations: 145.7 kB / 477.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1196, allocations: 7.938 kB / 477.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1196, allocations: 4 kB / 477.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1196, allocations: 0 / 477.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1196, allocations: 3.984 kB / 477.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1196, allocations: 4 kB / 477.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1196, allocations: 0 / 477.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.969e-05/0.1197, allocations: 94.77 kB / 477.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.1197, allocations: 84.98 kB / 477.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.1198, allocations: 0 / 477.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.1198, allocations: 0 / 477.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.1198, allocations: 8 kB / 477.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.1198, allocations: 32 / 477.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.76e-05/0.1198, allocations: 79.28 kB / 477.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1198, allocations: 0 / 477.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009089/0.1208, allocations: 276 kB / 477.8 MB, free: 5.859 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.001733/0.1225, allocations: 406.2 kB / 478.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.799e-05/0.1226, allocations: 59.41 kB / 478.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1226, allocations: 0 / 478.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.075e-05/0.1227, allocations: 59.34 kB / 478.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.1228, allocations: 14.06 kB / 478.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001641/0.123, allocations: 106.6 kB / 478.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.1232, allocations: 0.669 MB / 479.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.307e-05/0.1232, allocations: 7.438 kB / 479.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1232, allocations: 0 / 479.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of Templates: time 0.0105/0.1337, allocations: 6.756 MB / 485.9 MB, free: 13.71 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