Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001489/0.001489, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001746/0.001746, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2261/0.2261, allocations: 46.09 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 76.56 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1289, allocations: 62.46 MB / 480 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.00211/0.131, allocations: 475.7 kB / 480.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008242/0.1393, allocations: 4.875 MB / 485.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.129e-05/0.1394, allocations: 0 / 485.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.096e-05/0.1394, allocations: 0 / 485.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.731e-06/0.1394, allocations: 3.938 kB / 485.4 MB, free: 15.88 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.008832/0.1483, allocations: 2.941 MB / 488.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.033e-05/0.1484, allocations: 7.984 kB / 488.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.313e-05/0.1484, allocations: 3.984 kB / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.712e-05/0.1484, allocations: 0 / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.77e-05/0.1485, allocations: 0 / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-06/0.1485, allocations: 0 / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02711/0.1756, allocations: 18.57 MB / 0.495 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.351e-05/0.1757, allocations: 0 / 0.495 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.1757, allocations: 0 / 0.495 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.258/0.4337, allocations: 27.48 MB / 0.5218 GB, free: 27.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.4338, allocations: 0 / 0.5218 GB, free: 27.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4338, allocations: 0 / 0.5218 GB, free: 27.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.4338, allocations: 0 / 0.5218 GB, free: 27.18 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.01518/0.449, allocations: 0.653 MB / 0.5225 GB, free: 26.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.449, allocations: 8.156 kB / 0.5225 GB, free: 26.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.4491, allocations: 6.312 kB / 0.5225 GB, free: 26.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.937e-05/0.4492, allocations: 169.7 kB / 0.5227 GB, free: 26.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.4492, allocations: 0 / 0.5227 GB, free: 26.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.4492, allocations: 0 / 0.5227 GB, free: 26.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.806e-05/0.4493, allocations: 29.3 kB / 0.5227 GB, free: 26.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.371e-06/0.4493, allocations: 2.594 kB / 0.5227 GB, free: 26.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.4493, allocations: 0 / 0.5227 GB, free: 26.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.4493, allocations: 0 / 0.5227 GB, free: 26.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.79e-05/0.4494, allocations: 5.688 kB / 0.5227 GB, free: 26.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.067e-05/0.4495, allocations: 149 kB / 0.5228 GB, free: 26.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.984e-05/0.4495, allocations: 26.34 kB / 0.5229 GB, free: 26.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.251e-05/0.4495, allocations: 4.859 kB / 0.5229 GB, free: 26.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.4495, allocations: 3.438 kB / 0.5229 GB, free: 26.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.4496, allocations: 56.27 kB / 0.5229 GB, free: 26.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.873e-06/0.4496, allocations: 0.5625 kB / 0.5229 GB, free: 26.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.4497, allocations: 68 kB / 0.523 GB, free: 26.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.4498, allocations: 77.64 kB / 0.5231 GB, free: 25.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.985e-05/0.4498, allocations: 94.3 kB / 0.5231 GB, free: 25.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.563e-06/0.4498, allocations: 25.7 kB / 0.5232 GB, free: 25.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.008e-05/0.4498, allocations: 81.67 kB / 0.5233 GB, free: 25.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.4499, allocations: 3.125 kB / 0.5233 GB, free: 25.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.4499, allocations: 16.91 kB / 0.5233 GB, free: 25.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.23e-05/0.4499, allocations: 317.3 kB / 0.5236 GB, free: 25.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.45, allocations: 0 / 0.5236 GB, free: 25.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.45, allocations: 2.438 kB / 0.5236 GB, free: 25.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.31e-05/0.45, allocations: 70.22 kB / 0.5236 GB, free: 25.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.45, allocations: 3.531 kB / 0.5236 GB, free: 25.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.993e-05/0.4501, allocations: 62.19 kB / 0.5237 GB, free: 25.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.4501, allocations: 34.23 kB / 0.5237 GB, free: 25.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4501, allocations: 2.062 kB / 0.5237 GB, free: 25.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-05/0.4502, allocations: 0.7188 kB / 0.5237 GB, free: 25.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.4502, allocations: 0 / 0.5237 GB, free: 25.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.4502, allocations: 1.969 kB / 0.5237 GB, free: 25.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.856e-05/0.4502, allocations: 0 / 0.5237 GB, free: 25.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.4502, allocations: 7.453 kB / 0.5237 GB, free: 25.21 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 5.222e-05/0.4503, allocations: 137.4 kB / 0.5239 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.4503, allocations: 3.562 kB / 0.5239 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.4503, allocations: 6.75 kB / 0.5239 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4503, allocations: 0.5 kB / 0.5239 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.4503, allocations: 0.75 kB / 0.5239 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.4503, allocations: 0 / 0.5239 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.413e-05/0.4504, allocations: 155.1 kB / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4504, allocations: 2.625 kB / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-07/0.4504, allocations: 2.188 kB / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.4504, allocations: 0 / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.4504, allocations: 0 / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.4504, allocations: 3.188 kB / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4504, allocations: 0.9375 kB / 0.524 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.931e-05/0.4505, allocations: 95.77 kB / 0.5241 GB, free: 24.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.45e-05/0.4505, allocations: 81.05 kB / 0.5242 GB, free: 24.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.4506, allocations: 1.344 kB / 0.5242 GB, free: 24.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.18e-05/0.4506, allocations: 0 / 0.5242 GB, free: 24.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.3e-05/0.4506, allocations: 2.469 kB / 0.5242 GB, free: 24.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.4506, allocations: 2.344 kB / 0.5242 GB, free: 24.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.262e-05/0.4506, allocations: 78.66 kB / 0.5243 GB, free: 24.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4506, allocations: 256 / 0.5243 GB, free: 24.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.02003/0.4707, allocations: 3.775 MB / 0.528 GB, free: 21.38 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.04669/0.5174, allocations: 0.9706 MB / 0.5289 GB, free: 20.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.5176, allocations: 62.89 kB / 0.529 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5176, allocations: 4 kB / 0.529 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.147e-05/0.5176, allocations: 57.48 kB / 0.529 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000155/0.5178, allocations: 12.06 kB / 0.5291 GB, free: 20.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001685/0.5179, allocations: 77.05 kB / 0.5291 GB, free: 20.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.38e-05/0.518, allocations: 0.6729 MB / 0.5298 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.23e-06/0.518, allocations: 0 / 0.5298 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.5181, allocations: 11.44 kB / 0.5298 GB, free: 19.56 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5181, allocations: 0 / 0.5298 GB, free: 19.56 MB / 382.1 MB Notification: Performance of Templates: time 0.1636/0.6817, allocations: 112.6 MB / 0.6398 GB, free: 2.816 MB / 478.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)