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.001005/0.001006, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.0009798/0.0009797, allocations: 194 kB / 18.12 MB, free: 5.363 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.462/1.462, allocations: 222.9 MB / 241.8 MB, free: 13.88 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.2152/0.2152, allocations: 44.16 MB / 336.1 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 60.09 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1342, allocations: 60.82 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001875/0.1361, allocations: 0.5526 MB / 469.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008534/0.1446, allocations: 5.138 MB / 474.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.647e-05/0.1447, allocations: 0 / 474.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.445e-05/0.1447, allocations: 0 / 474.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.1448, allocations: 4 kB / 474.2 MB, free: 9.129 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.006829/0.1516, allocations: 2.57 MB / 476.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.572e-05/0.1517, allocations: 0 / 476.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.607e-05/0.1517, allocations: 4 kB / 476.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2e-05/0.1518, allocations: 0 / 476.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.227e-05/0.1518, allocations: 3.984 kB / 476.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.185e-06/0.1518, allocations: 0 / 476.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02874/0.1806, allocations: 18.93 MB / 495.7 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.529e-05/0.1806, allocations: 0 / 495.7 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.89e-05/0.1807, allocations: 7.984 kB / 495.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2844/0.4651, allocations: 27.03 MB / 0.5105 GB, free: 28.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.4651, allocations: 2.562 kB / 0.5105 GB, free: 28.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4651, allocations: 0 / 0.5105 GB, free: 28.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.4651, allocations: 3.75 kB / 0.5105 GB, free: 28.17 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.01201/0.4772, allocations: 0.6511 MB / 0.5111 GB, free: 27.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.4772, allocations: 10.28 kB / 0.5111 GB, free: 27.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.4773, allocations: 4.625 kB / 0.5112 GB, free: 27.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.066e-05/0.4773, allocations: 167.6 kB / 0.5113 GB, free: 27.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.4773, allocations: 0 / 0.5113 GB, free: 27.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.4773, allocations: 3.969 kB / 0.5113 GB, free: 27.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.571e-05/0.4774, allocations: 30.02 kB / 0.5113 GB, free: 27.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.4774, allocations: 0 / 0.5113 GB, free: 27.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.4775, allocations: 1.406 kB / 0.5113 GB, free: 27.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.4775, allocations: 0 / 0.5113 GB, free: 27.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.908e-05/0.4775, allocations: 5 kB / 0.5114 GB, free: 27.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.154e-05/0.4776, allocations: 157.3 kB / 0.5115 GB, free: 27.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.601e-05/0.4776, allocations: 24.72 kB / 0.5115 GB, free: 27.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.258e-05/0.4776, allocations: 6.359 kB / 0.5115 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.682e-06/0.4777, allocations: 0.625 kB / 0.5115 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.4777, allocations: 60.48 kB / 0.5116 GB, free: 27.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4777, allocations: 0 / 0.5116 GB, free: 27.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.4778, allocations: 66.75 kB / 0.5117 GB, free: 27.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.4779, allocations: 81.39 kB / 0.5117 GB, free: 27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.671e-05/0.4779, allocations: 89.86 kB / 0.5118 GB, free: 26.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.312e-06/0.4779, allocations: 27.08 kB / 0.5118 GB, free: 26.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-06/0.4779, allocations: 80.14 kB / 0.5119 GB, free: 26.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.478, allocations: 3.156 kB / 0.5119 GB, free: 26.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.478, allocations: 15.02 kB / 0.5119 GB, free: 26.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.478, allocations: 313.2 kB / 0.5122 GB, free: 26.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-06/0.4781, allocations: 4.344 kB / 0.5122 GB, free: 26.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.4781, allocations: 1.5 kB / 0.5122 GB, free: 26.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.278e-05/0.4781, allocations: 68.8 kB / 0.5123 GB, free: 26.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4781, allocations: 0 / 0.5123 GB, free: 26.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.581e-05/0.4782, allocations: 67.44 kB / 0.5124 GB, free: 26.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.4782, allocations: 30.81 kB / 0.5124 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.4782, allocations: 2.234 kB / 0.5124 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.4782, allocations: 2.25 kB / 0.5124 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.4782, allocations: 0 / 0.5124 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.4782, allocations: 1.344 kB / 0.5124 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.4783, allocations: 0.6562 kB / 0.5124 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.4783, allocations: 1.312 kB / 0.5124 GB, free: 26.3 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.824e-05/0.4783, allocations: 139.8 kB / 0.5125 GB, free: 26.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-06/0.4783, allocations: 2.172 kB / 0.5125 GB, free: 26.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.029e-05/0.4784, allocations: 10.73 kB / 0.5126 GB, free: 26.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4784, allocations: 1 kB / 0.5126 GB, free: 26.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4784, allocations: 0 / 0.5126 GB, free: 26.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.4784, allocations: 1.25 kB / 0.5126 GB, free: 26.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.82e-05/0.4784, allocations: 151.1 kB / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4785, allocations: 0 / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.4785, allocations: 0 / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4785, allocations: 3.594 kB / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.4785, allocations: 1.188 kB / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.4785, allocations: 0 / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4785, allocations: 0 / 0.5127 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.057e-05/0.4786, allocations: 100.9 kB / 0.5128 GB, free: 25.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.688e-05/0.4786, allocations: 78.89 kB / 0.5129 GB, free: 25.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.4786, allocations: 2.688 kB / 0.5129 GB, free: 25.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-06/0.4786, allocations: 3.938 kB / 0.5129 GB, free: 25.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.032e-05/0.4786, allocations: 2.062 kB / 0.5129 GB, free: 25.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.4786, allocations: 1.344 kB / 0.5129 GB, free: 25.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.163e-05/0.4787, allocations: 82.78 kB / 0.513 GB, free: 25.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4787, allocations: 0 / 0.513 GB, free: 25.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01661/0.4953, allocations: 3.774 MB / 0.5166 GB, free: 25.6 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.03164/0.5269, allocations: 0.9779 MB / 0.5176 GB, free: 25.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.5271, allocations: 61.73 kB / 0.5177 GB, free: 25.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.5271, allocations: 0 / 0.5177 GB, free: 25.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.441e-05/0.5271, allocations: 59.14 kB / 0.5177 GB, free: 25.26 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/0.5273, allocations: 5.812 kB / 0.5177 GB, free: 25.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002025/0.5275, allocations: 85.8 kB / 0.5178 GB, free: 25.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.771e-05/0.5276, allocations: 0.6699 MB / 0.5185 GB, free: 24.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.943e-06/0.5277, allocations: 1.312 kB / 0.5185 GB, free: 24.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.554e-05/0.5277, allocations: 11.62 kB / 0.5185 GB, free: 24.46 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5277, allocations: 0 / 0.5185 GB, free: 24.46 MB / 382.1 MB Notification: Performance of Templates: time 0.1574/0.6851, allocations: 112.6 MB / 0.6284 GB, free: 11.16 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)