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.001092/0.001092, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001091/0.001091, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.342/1.342, allocations: 222.9 MB / 242.2 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.2034/0.2034, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 69.2 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1133, allocations: 60.81 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001623/0.1149, allocations: 491.3 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006903/0.1218, allocations: 4.831 MB / 474.6 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.549e-05/0.1219, allocations: 0 / 474.6 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.1219, allocations: 4 kB / 474.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.1219, allocations: 0 / 474.6 MB, free: 9.043 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.007032/0.129, allocations: 2.936 MB / 477.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.463e-05/0.1291, allocations: 3.938 kB / 477.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.337e-05/0.1291, allocations: 4 kB / 477.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.412e-05/0.1292, allocations: 3.984 kB / 477.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.664e-05/0.1292, allocations: 4 kB / 477.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.547e-06/0.1292, allocations: 0 / 477.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02736/0.1566, allocations: 18.55 MB / 496.1 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.1566, allocations: 0 / 496.1 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.767e-05/0.1567, allocations: 4 kB / 496.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2423/0.3989, allocations: 27.46 MB / 0.5112 GB, free: 27.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.399, allocations: 0.5625 kB / 0.5112 GB, free: 27.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.399, allocations: 1.531 kB / 0.5112 GB, free: 27.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.399, allocations: 1.094 kB / 0.5113 GB, free: 27.86 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.01321/0.4123, allocations: 0.6576 MB / 0.5119 GB, free: 27.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.4123, allocations: 8.906 kB / 0.5119 GB, free: 27.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/0.4124, allocations: 6.672 kB / 0.5119 GB, free: 27.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.249e-05/0.4124, allocations: 170 kB / 0.5121 GB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.4125, allocations: 1.25 kB / 0.5121 GB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-06/0.4125, allocations: 0 / 0.5121 GB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.32e-05/0.4126, allocations: 29.23 kB / 0.5121 GB, free: 27.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.4126, allocations: 1.844 kB / 0.5121 GB, free: 27.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.4126, allocations: 1.047 kB / 0.5121 GB, free: 27.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.4126, allocations: 0 / 0.5121 GB, free: 27.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.784e-05/0.4126, allocations: 6.844 kB / 0.5121 GB, free: 27.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.86e-05/0.4127, allocations: 148.7 kB / 0.5122 GB, free: 26.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.329e-05/0.4128, allocations: 19.58 kB / 0.5123 GB, free: 26.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.296e-05/0.4128, allocations: 7.672 kB / 0.5123 GB, free: 26.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.4128, allocations: 0 / 0.5123 GB, free: 26.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.4128, allocations: 64.14 kB / 0.5123 GB, free: 26.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.4128, allocations: 1.875 kB / 0.5123 GB, free: 26.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.413, allocations: 69.86 kB / 0.5124 GB, free: 26.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.413, allocations: 77.11 kB / 0.5125 GB, free: 26.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.946e-05/0.4131, allocations: 90.98 kB / 0.5126 GB, free: 26.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.841e-06/0.4131, allocations: 25.7 kB / 0.5126 GB, free: 26.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.289e-05/0.4131, allocations: 86.08 kB / 0.5127 GB, free: 26.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.4131, allocations: 1.719 kB / 0.5127 GB, free: 26.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.4132, allocations: 12.12 kB / 0.5127 GB, free: 26.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.175e-05/0.4132, allocations: 314.9 kB / 0.513 GB, free: 26.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.4132, allocations: 7.031 kB / 0.513 GB, free: 26.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.79e-06/0.4132, allocations: 1.062 kB / 0.513 GB, free: 26.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.32e-05/0.4133, allocations: 64.42 kB / 0.5131 GB, free: 26.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.4133, allocations: 0 / 0.5131 GB, free: 26.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.664e-05/0.4133, allocations: 64.48 kB / 0.5131 GB, free: 26.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.4134, allocations: 38.34 kB / 0.5132 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.4134, allocations: 0 / 0.5132 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.4134, allocations: 1.125 kB / 0.5132 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.4134, allocations: 0 / 0.5132 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.4134, allocations: 0 / 0.5132 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.4134, allocations: 2.109 kB / 0.5132 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.4135, allocations: 3.25 kB / 0.5132 GB, free: 25.99 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 4.843e-05/0.4135, allocations: 138.6 kB / 0.5133 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-06/0.4135, allocations: 1.375 kB / 0.5133 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.298e-06/0.4135, allocations: 4.578 kB / 0.5133 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.4135, allocations: 0.75 kB / 0.5133 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4136, allocations: 2.469 kB / 0.5133 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.4136, allocations: 0.5625 kB / 0.5133 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.438e-05/0.4136, allocations: 152.5 kB / 0.5134 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4136, allocations: 3.266 kB / 0.5134 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.4136, allocations: 0 / 0.5134 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4136, allocations: 1.625 kB / 0.5135 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.4136, allocations: 3.75 kB / 0.5135 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.4137, allocations: 2.703 kB / 0.5135 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4137, allocations: 1.969 kB / 0.5135 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.039e-05/0.4137, allocations: 101.2 kB / 0.5136 GB, free: 25.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.589e-05/0.4138, allocations: 77.72 kB / 0.5136 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.4138, allocations: 1.672 kB / 0.5136 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-06/0.4138, allocations: 1.219 kB / 0.5136 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.4138, allocations: 6.844 kB / 0.5136 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.4138, allocations: 4.203 kB / 0.5136 GB, free: 25.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.213e-05/0.4138, allocations: 75.28 kB / 0.5137 GB, free: 25.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4138, allocations: 1.812 kB / 0.5137 GB, free: 25.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.016/0.4299, allocations: 3.781 MB / 0.5174 GB, free: 25.29 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.0332/0.4631, allocations: 0.9589 MB / 0.5183 GB, free: 25.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.4632, allocations: 69.59 kB / 0.5184 GB, free: 25.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4633, allocations: 0 / 0.5184 GB, free: 25.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.932e-05/0.4633, allocations: 51.41 kB / 0.5185 GB, free: 24.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.4634, allocations: 11.08 kB / 0.5185 GB, free: 24.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001701/0.4636, allocations: 83.7 kB / 0.5186 GB, free: 24.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.645e-05/0.4637, allocations: 0.669 MB / 0.5192 GB, free: 24.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.03e-06/0.4637, allocations: 0 / 0.5192 GB, free: 24.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.181e-05/0.4637, allocations: 13.88 kB / 0.5192 GB, free: 24.15 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4638, allocations: 128 / 0.5192 GB, free: 24.15 MB / 382.1 MB Notification: Performance of Templates: time 0.1541/0.6178, allocations: 112.6 MB / 0.6292 GB, free: 10.46 MB / 478.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)