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: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001828/0.001828, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2186/0.2186, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 79.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3148, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001558/0.3164, allocations: 0.4987 MB / 0.531 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007073/0.3235, allocations: 4.874 MB / 0.5357 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.607e-05/0.3236, allocations: 1.031 kB / 0.5357 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.474e-05/0.3236, allocations: 0 / 0.5357 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.3236, allocations: 0 / 0.5357 GB, free: 9.297 MB / 398.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.006801/0.3304, allocations: 2.936 MB / 0.5386 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.996e-05/0.3305, allocations: 10.58 kB / 0.5386 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.335e-05/0.3305, allocations: 5.312 kB / 0.5386 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.429e-05/0.3306, allocations: 0 / 0.5386 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.493e-05/0.3306, allocations: 1.312 kB / 0.5386 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-06/0.3306, allocations: 3.938 kB / 0.5386 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02654/0.3571, allocations: 18.82 MB / 0.557 GB, free: 6.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.492e-05/0.3572, allocations: 0 / 0.557 GB, free: 6.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.889e-05/0.3572, allocations: 0 / 0.557 GB, free: 6.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03778/0.395, allocations: 27.48 MB / 0.5838 GB, free: 11.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.3951, allocations: 0 / 0.5838 GB, free: 11.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3951, allocations: 0 / 0.5838 GB, free: 11.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.3951, allocations: 4 kB / 0.5838 GB, free: 11.13 MB / 446.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.007831/0.4029, allocations: 0.6775 MB / 0.5845 GB, free: 10.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.403, allocations: 12.03 kB / 0.5845 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.979e-05/0.403, allocations: 30.75 kB / 0.5846 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.4031, allocations: 0.9375 kB / 0.5846 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.4032, allocations: 167 kB / 0.5847 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.4032, allocations: 0 / 0.5847 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.4032, allocations: 0 / 0.5847 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.131e-05/0.4033, allocations: 37.58 kB / 0.5847 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.4033, allocations: 4 kB / 0.5848 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.4033, allocations: 0 / 0.5848 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4034, allocations: 0 / 0.5848 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.256e-05/0.4034, allocations: 7.984 kB / 0.5848 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001389/0.4035, allocations: 149.6 kB / 0.5849 GB, free: 9.895 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.541e-05/0.4036, allocations: 14.58 kB / 0.5849 GB, free: 9.871 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.858e-05/0.4036, allocations: 8.953 kB / 0.5849 GB, free: 9.859 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.4036, allocations: 4 kB / 0.5849 GB, free: 9.855 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.4037, allocations: 60.2 kB / 0.585 GB, free: 9.781 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.4037, allocations: 0 / 0.585 GB, free: 9.781 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001786/0.4039, allocations: 67.39 kB / 0.585 GB, free: 9.703 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.4039, allocations: 77.11 kB / 0.5851 GB, free: 9.609 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.428e-05/0.404, allocations: 89.86 kB / 0.5852 GB, free: 9.512 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.404, allocations: 29.7 kB / 0.5852 GB, free: 9.477 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.554e-05/0.404, allocations: 80.14 kB / 0.5853 GB, free: 9.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.404, allocations: 4.125 kB / 0.5853 GB, free: 9.391 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.4041, allocations: 9.719 kB / 0.5853 GB, free: 9.375 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4042, allocations: 322.8 kB / 0.5856 GB, free: 9.051 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-06/0.4042, allocations: 0 / 0.5856 GB, free: 9.051 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.474e-06/0.4042, allocations: 4 kB / 0.5856 GB, free: 9.047 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.066e-05/0.4043, allocations: 68.2 kB / 0.5857 GB, free: 8.965 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4043, allocations: 0 / 0.5857 GB, free: 8.965 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.344e-05/0.4043, allocations: 63.47 kB / 0.5858 GB, free: 8.891 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.4044, allocations: 33.69 kB / 0.5858 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.4044, allocations: 0 / 0.5858 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.4044, allocations: 0 / 0.5858 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.4044, allocations: 3.938 kB / 0.5858 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.4044, allocations: 0 / 0.5858 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.4045, allocations: 7.938 kB / 0.5858 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.4045, allocations: 0 / 0.5858 GB, free: 8.84 MB / 446.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 8.065e-05/0.4046, allocations: 135.5 kB / 0.5859 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.4046, allocations: 8.031 kB / 0.5859 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.887e-06/0.4046, allocations: 3.125 kB / 0.5859 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.4046, allocations: 3.984 kB / 0.586 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4046, allocations: 0 / 0.586 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4046, allocations: 7.875 kB / 0.586 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.765e-05/0.4047, allocations: 141.7 kB / 0.5861 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4047, allocations: 4 kB / 0.5861 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.144e-06/0.4047, allocations: 3.938 kB / 0.5861 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4047, allocations: 0 / 0.5861 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.4047, allocations: 0 / 0.5861 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4047, allocations: 0 / 0.5861 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4048, allocations: 7.984 kB / 0.5861 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.313e-05/0.4049, allocations: 94.77 kB / 0.5862 GB, free: 8.352 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.921e-05/0.4049, allocations: 77.11 kB / 0.5863 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.4049, allocations: 3.984 kB / 0.5863 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.4049, allocations: 4 kB / 0.5863 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.553e-05/0.405, allocations: 3.984 kB / 0.5863 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.405, allocations: 3.938 kB / 0.5863 GB, free: 8.242 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.263e-05/0.405, allocations: 79.31 kB / 0.5864 GB, free: 8.164 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.405, allocations: 0 / 0.5864 GB, free: 8.164 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01021/0.4152, allocations: 3.787 MB / 0.5901 GB, free: 4.375 MB / 446.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.02008/0.4353, allocations: 1.506 MB / 0.5915 GB, free: 2.844 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.4355, allocations: 59.41 kB / 0.5916 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4355, allocations: 0 / 0.5916 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.205e-05/0.4355, allocations: 63.34 kB / 0.5917 GB, free: 2.699 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.4357, allocations: 3.938 kB / 0.5917 GB, free: 2.695 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005844/0.4415, allocations: 352.8 kB / 0.592 GB, free: 2.309 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.4418, allocations: 0.669 MB / 0.5926 GB, free: 1.613 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.573e-06/0.4418, allocations: 128 / 0.5926 GB, free: 1.613 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.4418, allocations: 15.44 kB / 0.5927 GB, free: 1.598 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4418, allocations: 0 / 0.5927 GB, free: 1.598 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1707/0.6126, allocations: 113.8 MB / 0.7038 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.48, allocations: 11.86 kB / 0.7038 GB, free: 15.63 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)