Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008806/0.0008806, allocations: 94.55 kB / 18 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.0009229/0.000923, 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.334/1.334, allocations: 223.3 MB / 243 MB, free: 24 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2098/0.2098, allocations: 44.25 MB / 338.3 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003361, allocations: 8 kB / 411 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1266, allocations: 61.92 MB / 472.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0007548/0.1274, allocations: 213.3 kB / 473.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009145/0.1365, allocations: 5.031 MB / 478.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.772e-05/0.1366, allocations: 4 kB / 478.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.669e-05/0.1366, allocations: 0 / 478.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.68e-06/0.1366, allocations: 0 / 478.2 MB, free: 8.082 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:214:3-483:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.008234/0.1449, allocations: 2.574 MB / 480.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.756e-05/0.1449, allocations: 0 / 480.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.941e-05/0.145, allocations: 0 / 480.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.952e-05/0.145, allocations: 3.938 kB / 480.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.1451, allocations: 8 kB / 480.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-06/0.1451, allocations: 0 / 480.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03383/0.1789, allocations: 18.21 MB / 498.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.595e-05/0.179, allocations: 0 / 498.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.362e-05/0.179, allocations: 25.7 kB / 499 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2681/0.4472, allocations: 20.35 MB / 0.5071 GB, free: 17.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4472, allocations: 0 / 0.5071 GB, free: 17.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4472, allocations: 1.125 kB / 0.5071 GB, free: 17.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.4472, allocations: 0 / 0.5071 GB, free: 17.36 MB / 382.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.007639/0.4549, allocations: 0.6501 MB / 0.5078 GB, free: 16.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.4549, allocations: 9.953 kB / 0.5078 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.455, allocations: 2.375 kB / 0.5078 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.616e-05/0.4551, allocations: 166.2 kB / 0.508 GB, free: 16.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.4551, allocations: 0.875 kB / 0.508 GB, free: 16.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-06/0.4551, allocations: 2.875 kB / 0.508 GB, free: 16.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.652e-05/0.4552, allocations: 32.39 kB / 0.508 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.4552, allocations: 1.062 kB / 0.508 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.4552, allocations: 0.75 kB / 0.508 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4552, allocations: 0.6875 kB / 0.508 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.4553, allocations: 2.688 kB / 0.508 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001106/0.4554, allocations: 151.9 kB / 0.5081 GB, free: 16.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.034e-05/0.4554, allocations: 22.27 kB / 0.5082 GB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.689e-05/0.4555, allocations: 6.016 kB / 0.5082 GB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.4555, allocations: 1.578 kB / 0.5082 GB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.4555, allocations: 62.72 kB / 0.5082 GB, free: 16.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.4555, allocations: 1.375 kB / 0.5082 GB, free: 16.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.4557, allocations: 65.16 kB / 0.5083 GB, free: 16.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.4558, allocations: 83.47 kB / 0.5084 GB, free: 16.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.512e-05/0.4558, allocations: 90.89 kB / 0.5085 GB, free: 16.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.364e-06/0.4558, allocations: 25.7 kB / 0.5085 GB, free: 16.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.495e-05/0.4558, allocations: 82.23 kB / 0.5086 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.4559, allocations: 1.719 kB / 0.5086 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.15e-05/0.4559, allocations: 11.59 kB / 0.5086 GB, free: 15.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.702e-05/0.456, allocations: 312.4 kB / 0.5089 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.456, allocations: 1.875 kB / 0.5089 GB, free: 15.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.191e-06/0.456, allocations: 3.594 kB / 0.5089 GB, free: 15.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.874e-05/0.456, allocations: 65.73 kB / 0.5089 GB, free: 15.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.456, allocations: 0 / 0.5089 GB, free: 15.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.841e-05/0.4561, allocations: 69.7 kB / 0.509 GB, free: 15.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.4562, allocations: 30.92 kB / 0.509 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.4562, allocations: 1.125 kB / 0.509 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.4562, allocations: 0.6562 kB / 0.509 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.474e-06/0.4562, allocations: 1.062 kB / 0.509 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.4562, allocations: 0 / 0.509 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.4563, allocations: 3.266 kB / 0.509 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-06/0.4563, allocations: 2.031 kB / 0.509 GB, free: 15.49 MB / 382.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 6.034e-05/0.4563, allocations: 140.2 kB / 0.5092 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-06/0.4564, allocations: 1.156 kB / 0.5092 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.433e-05/0.4564, allocations: 7.828 kB / 0.5092 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4564, allocations: 1.641 kB / 0.5092 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4564, allocations: 0 / 0.5092 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4564, allocations: 2.219 kB / 0.5092 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.121e-05/0.4565, allocations: 152.3 kB / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4565, allocations: 0 / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.4565, allocations: 4.844 kB / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4565, allocations: 0.7031 kB / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.475e-06/0.4565, allocations: 1.156 kB / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4565, allocations: 3.891 kB / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4565, allocations: 3.312 kB / 0.5093 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.22e-05/0.4566, allocations: 96.52 kB / 0.5094 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.819e-05/0.4566, allocations: 78.88 kB / 0.5095 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.4566, allocations: 1.125 kB / 0.5095 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.085e-05/0.4567, allocations: 1.594 kB / 0.5095 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.4567, allocations: 1.094 kB / 0.5095 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.4567, allocations: 2.406 kB / 0.5095 GB, free: 14.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.462e-05/0.4567, allocations: 75.28 kB / 0.5096 GB, free: 14.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4567, allocations: 0 / 0.5096 GB, free: 14.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01208/0.4688, allocations: 3.776 MB / 0.5133 GB, free: 14.79 MB / 382.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.02118/0.49, allocations: 0.9917 MB / 0.5142 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.4902, allocations: 62.17 kB / 0.5143 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4902, allocations: 0 / 0.5143 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.043e-05/0.4902, allocations: 57.45 kB / 0.5144 GB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.4904, allocations: 6.391 kB / 0.5144 GB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001738/0.4905, allocations: 107.5 kB / 0.5145 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.68e-05/0.4906, allocations: 0.6718 MB / 0.5151 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.479e-05/0.4907, allocations: 10.22 kB / 0.5151 GB, free: 13.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4907, allocations: 0 / 0.5151 GB, free: 13.61 MB / 382.1 MB Notification: Performance of Templates: time 0.09622/0.5869, allocations: 64.88 MB / 0.5785 GB, free: 11.3 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches