Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001134, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001206/0.001206, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.376/1.376, allocations: 222.9 MB / 242.9 MB, free: 15.21 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.2146/0.2146, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.8 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1145, allocations: 60.82 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001867/0.1163, allocations: 475.9 kB / 470.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.1187, allocations: 1.567 MB / 472 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.487e-05/0.1188, allocations: 0 / 472 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.1188, allocations: 0 / 472 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.731e-06/0.1188, allocations: 4 kB / 472 MB, free: 12.32 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001036/0.1199, allocations: 266.3 kB / 472.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.214e-05/0.1199, allocations: 11.94 kB / 472.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.434e-05/0.12, allocations: 0 / 472.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.12, allocations: 0 / 472.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.345e-05/0.12, allocations: 3.984 kB / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.12, allocations: 0 / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007499/0.1208, allocations: 495 kB / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-06/0.1208, allocations: 0 / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.1209, allocations: 3.984 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.1214, allocations: 303.4 kB / 473 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1214, allocations: 0 / 473 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1214, allocations: 0 / 473 MB, free: 11.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1214, allocations: 4 kB / 473 MB, free: 11.25 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.0004172/0.1218, allocations: 377.2 kB / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1219, allocations: 12.03 kB / 473.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.1219, allocations: 0.9375 kB / 473.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.122, allocations: 168.3 kB / 473.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.1221, allocations: 4.375 kB / 473.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.825e-06/0.1221, allocations: 384 / 473.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.815e-05/0.1222, allocations: 34.02 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1222, allocations: 3.984 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1222, allocations: 0 / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1222, allocations: 0 / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.862e-05/0.1222, allocations: 4 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001973/0.1225, allocations: 149.7 kB / 473.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.242e-05/0.1225, allocations: 18.52 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.1225, allocations: 12.95 kB / 473.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.1225, allocations: 0 / 473.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001232/0.1227, allocations: 60.2 kB / 473.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1227, allocations: 7.938 kB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001803/0.1229, allocations: 63.39 kB / 473.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.95e-05/0.123, allocations: 77.11 kB / 474 MB, free: 10.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.321e-05/0.123, allocations: 89.86 kB / 474.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.123, allocations: 25.7 kB / 474.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.758e-05/0.1231, allocations: 84.14 kB / 474.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.1231, allocations: 7.938 kB / 474.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.1231, allocations: 9.719 kB / 474.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1233, allocations: 319 kB / 474.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.195e-05/0.1233, allocations: 4 kB / 474.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.1233, allocations: 0 / 474.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.549e-05/0.1233, allocations: 60.27 kB / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1233, allocations: 0 / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.411e-05/0.1234, allocations: 63.31 kB / 474.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.434e-05/0.1235, allocations: 41.62 kB / 474.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1235, allocations: 4 kB / 474.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1235, allocations: 4.094 kB / 474.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1235, allocations: 0 / 474.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.1235, allocations: 3.938 kB / 474.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.834e-05/0.1235, allocations: 3.938 kB / 474.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1236, allocations: 4 kB / 474.7 MB, free: 9.301 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.598e-05/0.1237, allocations: 131.5 kB / 474.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.1237, allocations: 3.938 kB / 474.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.114e-05/0.1237, allocations: 7.125 kB / 474.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1237, allocations: 0 / 474.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1237, allocations: 4 kB / 474.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.1237, allocations: 3.984 kB / 474.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.1238, allocations: 145.7 kB / 475 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1238, allocations: 0 / 475 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1238, allocations: 0 / 475 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1238, allocations: 7.938 kB / 475 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-06/0.1239, allocations: 0 / 475 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1239, allocations: 0 / 475 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1239, allocations: 0 / 475 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.124, allocations: 94.83 kB / 475.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.124, allocations: 77.11 kB / 475.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.124, allocations: 3.938 kB / 475.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.1241, allocations: 0 / 475.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/0.1241, allocations: 11.92 kB / 475.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.1241, allocations: 0 / 475.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.83e-05/0.1241, allocations: 75.28 kB / 475.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1241, allocations: 0 / 475.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.1245, allocations: 63.94 kB / 475.3 MB, free: 8.574 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.0005297/0.125, allocations: 201.9 kB / 475.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.1251, allocations: 59.41 kB / 475.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1252, allocations: 0 / 475.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.281e-05/0.1252, allocations: 55.41 kB / 475.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.1253, allocations: 0 / 475.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002199/0.1256, allocations: 106.6 kB / 475.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.1258, allocations: 0.6767 MB / 476.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.157e-05/0.1258, allocations: 11.5 kB / 476.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1258, allocations: 4 kB / 476.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of Templates: time 0.003168/0.129, allocations: 1.277 MB / 477.7 MB, free: 6.109 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches