Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009854/0.0009854, allocations: 202.9 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008024/0.0008025, allocations: 96.06 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1774/0.1774, allocations: 44.84 MB / 392 MB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002244, allocations: 11.98 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08732/0.08756, allocations: 62.95 MB / 0.5153 GB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.000529/0.08813, allocations: 216.6 kB / 0.5155 GB, free: 2.574 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1672/0.2553, allocations: 4.618 MB / 0.52 GB, free: 9.703 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.626e-05/0.2554, allocations: 0 / 0.52 GB, free: 9.703 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.155e-05/0.2554, allocations: 3.938 kB / 0.52 GB, free: 9.699 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.599e-06/0.2554, allocations: 3.375 kB / 0.52 GB, free: 9.699 MB / 346.7 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.005645/0.261, allocations: 2.57 MB / 0.5225 GB, free: 9.379 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.621e-05/0.2611, allocations: 1.125 kB / 0.5225 GB, free: 9.379 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.601e-05/0.2611, allocations: 1.75 kB / 0.5226 GB, free: 9.379 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.343e-05/0.2611, allocations: 6.109 kB / 0.5226 GB, free: 9.375 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.333e-05/0.2612, allocations: 5.438 kB / 0.5226 GB, free: 9.371 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.829e-06/0.2612, allocations: 0 / 0.5226 GB, free: 9.371 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02969/0.2909, allocations: 19.81 MB / 0.5419 GB, free: 2.027 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-06/0.2909, allocations: 0 / 0.5419 GB, free: 2.027 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.2909, allocations: 33.7 kB / 0.5419 GB, free: 1.988 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03348/0.3244, allocations: 20.16 MB / 0.5616 GB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3245, allocations: 0 / 0.5616 GB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3245, allocations: 0 / 0.5616 GB, free: 13.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.3245, allocations: 0 / 0.5616 GB, free: 13.89 MB / 378.7 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.00701/0.3315, allocations: 0.6461 MB / 0.5623 GB, free: 13.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3316, allocations: 15.97 kB / 0.5623 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.3316, allocations: 3.953 kB / 0.5623 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.511e-05/0.3317, allocations: 159.1 kB / 0.5624 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.3317, allocations: 2.625 kB / 0.5624 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.3317, allocations: 4 kB / 0.5624 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.141e-05/0.3318, allocations: 41.62 kB / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.3318, allocations: 0 / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.3318, allocations: 0 / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3318, allocations: 0 / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.593e-05/0.3319, allocations: 3.953 kB / 0.5625 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.332, allocations: 146.6 kB / 0.5626 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.026e-05/0.332, allocations: 14.58 kB / 0.5626 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.332, allocations: 12.8 kB / 0.5626 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-06/0.332, allocations: 4.094 kB / 0.5626 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.3321, allocations: 64.25 kB / 0.5627 GB, free: 12.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3321, allocations: 0 / 0.5627 GB, free: 12.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.3322, allocations: 59.41 kB / 0.5628 GB, free: 12.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.3323, allocations: 77.11 kB / 0.5628 GB, free: 12.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.102e-05/0.3323, allocations: 89.86 kB / 0.5629 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.3324, allocations: 29.83 kB / 0.563 GB, free: 12.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.142e-05/0.3324, allocations: 84.12 kB / 0.563 GB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.3324, allocations: 5.734 kB / 0.563 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/0.3324, allocations: 7.938 kB / 0.563 GB, free: 12.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.3325, allocations: 318.8 kB / 0.5634 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.3325, allocations: 0 / 0.5634 GB, free: 11.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.688e-06/0.3325, allocations: 3.938 kB / 0.5634 GB, free: 11.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.428e-05/0.3326, allocations: 29.7 kB / 0.5634 GB, free: 11.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3326, allocations: 4.062 kB / 0.5634 GB, free: 11.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.63e-05/0.3326, allocations: 55.41 kB / 0.5634 GB, free: 11.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.3327, allocations: 37.69 kB / 0.5635 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3327, allocations: 0 / 0.5635 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.168e-06/0.3327, allocations: 0 / 0.5635 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-07/0.3327, allocations: 0 / 0.5635 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.3327, allocations: 0 / 0.5635 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.3327, allocations: 0 / 0.5635 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.3327, allocations: 4 kB / 0.5635 GB, free: 11.75 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.138e-05/0.3328, allocations: 147.5 kB / 0.5636 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-06/0.3328, allocations: 0 / 0.5636 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.015e-06/0.3329, allocations: 7.125 kB / 0.5636 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3329, allocations: 3.984 kB / 0.5636 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3329, allocations: 1.938 kB / 0.5636 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.3329, allocations: 0 / 0.5636 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.535e-05/0.333, allocations: 146.8 kB / 0.5638 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.333, allocations: 0 / 0.5638 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.333, allocations: 3.938 kB / 0.5638 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.333, allocations: 5.078 kB / 0.5638 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.333, allocations: 0 / 0.5638 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.333, allocations: 4 kB / 0.5638 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.333, allocations: 0 / 0.5638 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.314e-05/0.3331, allocations: 94.78 kB / 0.5639 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.488e-05/0.3331, allocations: 77.11 kB / 0.564 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3331, allocations: 3.984 kB / 0.564 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-06/0.3332, allocations: 0 / 0.564 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.021e-05/0.3332, allocations: 4 kB / 0.564 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.3332, allocations: 4.594 kB / 0.564 GB, free: 11.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.323e-05/0.3332, allocations: 75.28 kB / 0.564 GB, free: 11.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3332, allocations: 0 / 0.564 GB, free: 11.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009482/0.3427, allocations: 3.769 MB / 0.5677 GB, free: 7.309 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01607/0.3588, allocations: 0.9781 MB / 0.5687 GB, free: 6.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.3589, allocations: 63.39 kB / 0.5687 GB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3589, allocations: 0 / 0.5687 GB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.961e-05/0.359, allocations: 59.47 kB / 0.5688 GB, free: 6.266 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.3591, allocations: 3.953 kB / 0.5688 GB, free: 6.262 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001766/0.3593, allocations: 101.2 kB / 0.5689 GB, free: 6.129 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.3595, allocations: 0.6731 MB / 0.5695 GB, free: 5.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.025e-05/0.3595, allocations: 11.44 kB / 0.5696 GB, free: 5.422 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3595, allocations: 0 / 0.5696 GB, free: 5.422 MB / 378.7 MB Notification: Performance of Templates: time 0.08684/0.4464, allocations: 64.93 MB / 0.633 GB, free: 4.391 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe 2>&1)