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.001037/0.001037, allocations: 115.7 kB / 17.78 MB, free: 5.254 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.001095/0.001095, allocations: 185 kB / 18.72 MB, free: 4.332 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.03 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.1995/0.1995, allocations: 44.19 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3779, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001334/0.3793, allocations: 0.4981 MB / 0.5194 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005929/0.3853, allocations: 4.82 MB / 0.5241 GB, free: 112 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.738e-05/0.3853, allocations: 0 / 0.5241 GB, free: 112 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.3853, allocations: 5.031 kB / 0.5241 GB, free: 108 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.091e-06/0.3853, allocations: 0 / 0.5241 GB, free: 108 kB / 382.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.007228/0.3926, allocations: 2.942 MB / 0.527 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.778e-05/0.3926, allocations: 5.359 kB / 0.527 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.3927, allocations: 5.469 kB / 0.527 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.385e-05/0.3927, allocations: 4 kB / 0.527 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.495e-05/0.3927, allocations: 1.25 kB / 0.527 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.08e-06/0.3927, allocations: 0 / 0.527 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03107/0.4238, allocations: 18.8 MB / 0.5453 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.4239, allocations: 4 kB / 0.5453 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.075e-05/0.4239, allocations: 7.922 kB / 0.5453 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03761/0.4615, allocations: 27.47 MB / 0.5722 GB, free: 5.469 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4616, allocations: 0 / 0.5722 GB, free: 5.469 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4616, allocations: 0 / 0.5722 GB, free: 5.469 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.4616, allocations: 0 / 0.5722 GB, free: 5.469 MB / 430.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.007637/0.4693, allocations: 0.6814 MB / 0.5728 GB, free: 4.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.4693, allocations: 8.031 kB / 0.5728 GB, free: 4.723 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.466e-05/0.4694, allocations: 0.9375 kB / 0.5728 GB, free: 4.723 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.4695, allocations: 163.2 kB / 0.573 GB, free: 4.523 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.4695, allocations: 0 / 0.573 GB, free: 4.523 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.4695, allocations: 4 kB / 0.573 GB, free: 4.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.213e-05/0.4696, allocations: 29.64 kB / 0.573 GB, free: 4.484 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.4696, allocations: 0 / 0.573 GB, free: 4.484 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.4696, allocations: 3.984 kB / 0.573 GB, free: 4.48 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4697, allocations: 8 kB / 0.573 GB, free: 4.473 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.193e-05/0.4697, allocations: 0 / 0.573 GB, free: 4.473 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.4698, allocations: 149.6 kB / 0.5732 GB, free: 4.277 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.142e-05/0.4699, allocations: 18.61 kB / 0.5732 GB, free: 4.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.379e-05/0.4699, allocations: 4.859 kB / 0.5732 GB, free: 4.242 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.4699, allocations: 0 / 0.5732 GB, free: 4.242 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.47, allocations: 64.2 kB / 0.5733 GB, free: 4.164 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.47, allocations: 0 / 0.5733 GB, free: 4.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001771/0.4702, allocations: 67.45 kB / 0.5733 GB, free: 4.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.4702, allocations: 88.98 kB / 0.5734 GB, free: 3.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.218e-05/0.4703, allocations: 89.86 kB / 0.5735 GB, free: 3.883 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.4703, allocations: 25.7 kB / 0.5735 GB, free: 3.852 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.296e-05/0.4703, allocations: 80.14 kB / 0.5736 GB, free: 3.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.4703, allocations: 3.953 kB / 0.5736 GB, free: 3.766 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.4704, allocations: 17.83 kB / 0.5736 GB, free: 3.742 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.4705, allocations: 322.8 kB / 0.5739 GB, free: 3.418 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.4705, allocations: 0 / 0.5739 GB, free: 3.418 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-06/0.4706, allocations: 0 / 0.5739 GB, free: 3.418 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.669e-05/0.4706, allocations: 64.2 kB / 0.574 GB, free: 3.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4706, allocations: 0 / 0.574 GB, free: 3.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.632e-05/0.4707, allocations: 63.39 kB / 0.5741 GB, free: 3.266 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.4707, allocations: 29.7 kB / 0.5741 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.4707, allocations: 4.094 kB / 0.5741 GB, free: 3.227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.4708, allocations: 4 kB / 0.5741 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.4708, allocations: 0 / 0.5741 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.4708, allocations: 0 / 0.5741 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.4708, allocations: 0 / 0.5741 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.4708, allocations: 3.938 kB / 0.5741 GB, free: 3.219 MB / 430.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.994e-05/0.4709, allocations: 139.5 kB / 0.5742 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-06/0.4709, allocations: 0 / 0.5742 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.362e-05/0.4709, allocations: 7.109 kB / 0.5742 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.82e-07/0.4709, allocations: 4 kB / 0.5742 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4709, allocations: 0 / 0.5742 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.4709, allocations: 3.938 kB / 0.5742 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.656e-05/0.4711, allocations: 153.6 kB / 0.5744 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4711, allocations: 0 / 0.5744 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.4711, allocations: 0 / 0.5744 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.4711, allocations: 0 / 0.5744 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.4711, allocations: 0 / 0.5744 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.4711, allocations: 7.984 kB / 0.5744 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4711, allocations: 0 / 0.5744 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.913e-05/0.4712, allocations: 94.78 kB / 0.5745 GB, free: 2.727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/0.4712, allocations: 77.11 kB / 0.5746 GB, free: 2.633 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.4712, allocations: 7.984 kB / 0.5746 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.918e-06/0.4713, allocations: 0 / 0.5746 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.043e-05/0.4713, allocations: 7.922 kB / 0.5746 GB, free: 2.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.4713, allocations: 0 / 0.5746 GB, free: 2.617 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.292e-05/0.4713, allocations: 83.22 kB / 0.5747 GB, free: 2.535 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4713, allocations: 0 / 0.5747 GB, free: 2.535 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01142/0.4828, allocations: 3.787 MB / 0.5784 GB, free: 14.75 MB / 446.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.02255/0.5053, allocations: 0.9844 MB / 0.5793 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001357/0.5055, allocations: 55.41 kB / 0.5794 GB, free: 13.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5055, allocations: 0 / 0.5794 GB, free: 13.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.204e-05/0.5056, allocations: 55.41 kB / 0.5794 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001525/0.5057, allocations: 15.92 kB / 0.5794 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002109/0.5059, allocations: 69.2 kB / 0.5795 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.5062, allocations: 0.6805 MB / 0.5802 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.416e-06/0.5062, allocations: 0 / 0.5802 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.5062, allocations: 7.438 kB / 0.5802 GB, free: 12.82 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5062, allocations: 4 kB / 0.5802 GB, free: 12.81 MB / 446.1 MB Notification: Performance of Templates: time 0.1593/0.6655, allocations: 112.6 MB / 0.6901 GB, free: 12.02 MB / 0.545 GB 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)