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.001093/0.001093, allocations: 109.1 kB / 17.33 MB, free: 6.023 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.001314/0.001314, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.319/1.319, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2138/0.2138, allocations: 44.18 MB / 336.2 MB, free: 2.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 64.69 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1089, allocations: 60.83 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001586/0.1105, allocations: 0.5487 MB / 469.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007058/0.1176, allocations: 4.869 MB / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.264e-05/0.1177, allocations: 0 / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.947e-05/0.1177, allocations: 0 / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.571e-06/0.1177, allocations: 0 / 474.1 MB, free: 9.305 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.006622/0.1244, allocations: 2.722 MB / 476.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.707e-05/0.1244, allocations: 0 / 476.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.808e-05/0.1245, allocations: 4 kB / 476.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.763e-05/0.1245, allocations: 0 / 476.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.745e-05/0.1245, allocations: 0 / 476.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.681e-06/0.1245, allocations: 4 kB / 476.9 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02729/0.1518, allocations: 19.01 MB / 495.9 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.1519, allocations: 0 / 495.9 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.1519, allocations: 7.938 kB / 495.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2689/0.4209, allocations: 27.04 MB / 0.5107 GB, free: 28.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4209, allocations: 1.25 kB / 0.5107 GB, free: 28.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4209, allocations: 0 / 0.5107 GB, free: 28.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.4209, allocations: 0.75 kB / 0.5107 GB, free: 28.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.01351/0.4344, allocations: 0.654 MB / 0.5113 GB, free: 27.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4345, allocations: 10.19 kB / 0.5113 GB, free: 27.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.4346, allocations: 3.141 kB / 0.5113 GB, free: 27.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.565e-05/0.4346, allocations: 165.5 kB / 0.5115 GB, free: 27.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.4347, allocations: 1.156 kB / 0.5115 GB, free: 27.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.749e-06/0.4347, allocations: 4.562 kB / 0.5115 GB, free: 27.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.4348, allocations: 31.55 kB / 0.5115 GB, free: 27.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4348, allocations: 0 / 0.5115 GB, free: 27.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.4348, allocations: 1.688 kB / 0.5115 GB, free: 27.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4348, allocations: 0 / 0.5115 GB, free: 27.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.327e-05/0.4349, allocations: 8 kB / 0.5115 GB, free: 27.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.925e-05/0.435, allocations: 147.1 kB / 0.5116 GB, free: 27.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.074e-05/0.435, allocations: 25.2 kB / 0.5117 GB, free: 27.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.435, allocations: 8.609 kB / 0.5117 GB, free: 27.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.435, allocations: 3.688 kB / 0.5117 GB, free: 27.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.4351, allocations: 58.41 kB / 0.5117 GB, free: 27.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.4351, allocations: 0 / 0.5117 GB, free: 27.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001756/0.4353, allocations: 67.39 kB / 0.5118 GB, free: 27.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.4353, allocations: 82.83 kB / 0.5119 GB, free: 27.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.427e-05/0.4354, allocations: 92.05 kB / 0.512 GB, free: 27.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.4354, allocations: 26.77 kB / 0.512 GB, free: 27.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.242e-05/0.4354, allocations: 80.98 kB / 0.5121 GB, free: 26.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.4354, allocations: 3.609 kB / 0.5121 GB, free: 26.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.4354, allocations: 11.44 kB / 0.5121 GB, free: 26.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.892e-05/0.4355, allocations: 314.8 kB / 0.5124 GB, free: 26.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.4355, allocations: 2.906 kB / 0.5124 GB, free: 26.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.931e-06/0.4355, allocations: 0.9375 kB / 0.5124 GB, free: 26.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.163e-05/0.4356, allocations: 67.41 kB / 0.5125 GB, free: 26.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.4356, allocations: 2.625 kB / 0.5125 GB, free: 26.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.506e-05/0.4356, allocations: 65.17 kB / 0.5125 GB, free: 26.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.4357, allocations: 34.95 kB / 0.5126 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4357, allocations: 0.9062 kB / 0.5126 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.4357, allocations: 0.6094 kB / 0.5126 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.4357, allocations: 0.8438 kB / 0.5126 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.4357, allocations: 2.438 kB / 0.5126 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.4358, allocations: 1.156 kB / 0.5126 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.4358, allocations: 0.8125 kB / 0.5126 GB, free: 26.48 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 7.098e-05/0.4358, allocations: 146.5 kB / 0.5127 GB, free: 26.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.334e-06/0.4359, allocations: 0 / 0.5127 GB, free: 26.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.649e-05/0.4359, allocations: 4.844 kB / 0.5127 GB, free: 26.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.4359, allocations: 0 / 0.5127 GB, free: 26.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4359, allocations: 1.125 kB / 0.5127 GB, free: 26.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.4359, allocations: 1.125 kB / 0.5127 GB, free: 26.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.696e-05/0.436, allocations: 149.1 kB / 0.5128 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.436, allocations: 0 / 0.5128 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.424e-06/0.436, allocations: 4.203 kB / 0.5129 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.436, allocations: 1.031 kB / 0.5129 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.436, allocations: 5.375 kB / 0.5129 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.436, allocations: 1.672 kB / 0.5129 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.436, allocations: 0 / 0.5129 GB, free: 26.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.899e-05/0.4361, allocations: 94.08 kB / 0.513 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.295e-05/0.4361, allocations: 79.89 kB / 0.513 GB, free: 25.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.4362, allocations: 1.156 kB / 0.513 GB, free: 25.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.4362, allocations: 3.359 kB / 0.513 GB, free: 25.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.231e-05/0.4362, allocations: 2.625 kB / 0.513 GB, free: 25.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.4362, allocations: 2.719 kB / 0.513 GB, free: 25.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.44e-05/0.4362, allocations: 75.28 kB / 0.5131 GB, free: 25.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4362, allocations: 5.344 kB / 0.5131 GB, free: 25.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01883/0.4551, allocations: 3.781 MB / 0.5168 GB, free: 25.77 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.03708/0.4922, allocations: 0.9641 MB / 0.5177 GB, free: 25.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.4924, allocations: 67 kB / 0.5178 GB, free: 25.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4924, allocations: 0 / 0.5178 GB, free: 25.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.198e-05/0.4924, allocations: 52.81 kB / 0.5179 GB, free: 25.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.4926, allocations: 12.45 kB / 0.5179 GB, free: 25.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000168/0.4928, allocations: 80.31 kB / 0.5179 GB, free: 25.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.61e-05/0.4929, allocations: 0.6695 MB / 0.5186 GB, free: 24.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.223e-06/0.4929, allocations: 0.7969 kB / 0.5186 GB, free: 24.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.145e-05/0.4929, allocations: 11.38 kB / 0.5186 GB, free: 24.64 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4929, allocations: 0 / 0.5186 GB, free: 24.64 MB / 382.1 MB Notification: Performance of Templates: time 0.1608/0.6537, allocations: 112.6 MB / 0.6286 GB, free: 11.23 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)