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.001123/0.001123, allocations: 108.9 kB / 17.33 MB, free: 5.992 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.001118/0.001118, allocations: 189.3 kB / 18.25 MB, free: 5.086 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.334/1.334, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2029/0.2029, allocations: 44.18 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 57.31 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1091, allocations: 60.82 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001604/0.1107, allocations: 0.5488 MB / 469.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1126, allocations: 1.559 MB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.122e-05/0.1126, allocations: 0 / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.238e-05/0.1126, allocations: 4 kB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1126, allocations: 0 / 470.8 MB, free: 12.62 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.0007438/0.1134, allocations: 243.5 kB / 471.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.994e-05/0.1134, allocations: 4 kB / 471.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.111e-05/0.1135, allocations: 7.938 kB / 471.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.205e-05/0.1135, allocations: 0 / 471.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.594e-05/0.1135, allocations: 0 / 471.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.23e-06/0.1135, allocations: 4 kB / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005617/0.1141, allocations: 495 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.211e-06/0.1141, allocations: 0 / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.954e-05/0.1141, allocations: 4 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000372/0.1145, allocations: 307.3 kB / 471.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1145, allocations: 0 / 471.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1145, allocations: 0 / 471.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1145, allocations: 0 / 471.9 MB, free: 11.57 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.0003263/0.1149, allocations: 385.2 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.1149, allocations: 12.03 kB / 472.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/0.115, allocations: 0.9375 kB / 472.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.143e-05/0.115, allocations: 160.4 kB / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.1151, allocations: 384 / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.824e-06/0.1151, allocations: 384 / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.878e-05/0.1151, allocations: 34.02 kB / 472.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-06/0.1152, allocations: 0 / 472.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.1152, allocations: 3.984 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1152, allocations: 4 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.849e-05/0.1152, allocations: 7.922 kB / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.1154, allocations: 153.7 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.287e-05/0.1154, allocations: 14.58 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.463e-05/0.1154, allocations: 8.953 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-06/0.1154, allocations: 0 / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.1155, allocations: 64.2 kB / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1155, allocations: 0 / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001484/0.1156, allocations: 71.33 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.1157, allocations: 77.11 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.307e-05/0.1157, allocations: 93.8 kB / 472.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.1157, allocations: 25.7 kB / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.219e-05/0.1158, allocations: 80.14 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.1158, allocations: 4 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.1158, allocations: 9.844 kB / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.1159, allocations: 318.8 kB / 473.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.908e-06/0.1159, allocations: 4 kB / 473.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.1159, allocations: 4 kB / 473.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.326e-05/0.116, allocations: 60.27 kB / 473.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.116, allocations: 0 / 473.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.557e-05/0.1161, allocations: 63.25 kB / 473.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.1161, allocations: 41.62 kB / 473.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1161, allocations: 4.094 kB / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.1161, allocations: 0 / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1161, allocations: 0 / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1162, allocations: 0 / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.1162, allocations: 0 / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.1162, allocations: 7.938 kB / 473.5 MB, free: 9.625 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.0001718/0.1164, allocations: 135.5 kB / 473.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.1164, allocations: 3.938 kB / 473.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.848e-06/0.1164, allocations: 7.125 kB / 473.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1164, allocations: 8 kB / 473.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1164, allocations: 3.984 kB / 473.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.1164, allocations: 0 / 473.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.341e-05/0.1165, allocations: 141.7 kB / 473.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1165, allocations: 0 / 473.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1165, allocations: 0 / 473.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1165, allocations: 7.938 kB / 473.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.86e-06/0.1165, allocations: 0 / 473.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1165, allocations: 0 / 473.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1165, allocations: 0 / 473.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.515e-05/0.1166, allocations: 98.77 kB / 473.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.575e-05/0.1167, allocations: 77.11 kB / 474 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.1167, allocations: 3.938 kB / 474 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.007e-05/0.1167, allocations: 3.984 kB / 474 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.198e-05/0.1167, allocations: 4 kB / 474 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1167, allocations: 0 / 474 MB, free: 9.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.386e-05/0.1168, allocations: 75.28 kB / 474.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1168, allocations: 0 / 474.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.1171, allocations: 72.02 kB / 474.2 MB, free: 8.887 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.000407/0.1175, allocations: 198.5 kB / 474.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.218e-05/0.1176, allocations: 55.41 kB / 474.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1176, allocations: 3.938 kB / 474.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.771e-05/0.1177, allocations: 59.41 kB / 474.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.1178, allocations: 7.078 kB / 474.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00014/0.1179, allocations: 76.94 kB / 474.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.1182, allocations: 0.673 MB / 475.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.481e-06/0.1182, allocations: 3.938 kB / 475.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.159e-05/0.1182, allocations: 11.44 kB / 475.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1182, allocations: 0 / 475.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of Templates: time 0.004498/0.1227, allocations: 1.28 MB / 476.5 MB, free: 6.453 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches