Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001494, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002102/0.002102, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2165/0.2165, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001747, allocations: 76.2 kB / 480.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3234, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001564/0.325, allocations: 494.6 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002882/0.3279, allocations: 2.141 MB / 0.5331 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.823e-05/0.3279, allocations: 0 / 0.5331 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.218e-05/0.3279, allocations: 0 / 0.5331 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.352e-06/0.3279, allocations: 0 / 0.5331 GB, free: 11.38 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001908/0.3299, allocations: 0.7299 MB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.811e-05/0.3299, allocations: 5.375 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.587e-05/0.33, allocations: 1.375 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.665e-05/0.33, allocations: 3.984 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.754e-05/0.33, allocations: 1.375 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.33, allocations: 0 / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002133/0.3322, allocations: 1.512 MB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.3322, allocations: 0 / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.291e-05/0.3322, allocations: 1.375 kB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.334, allocations: 1.55 MB / 0.5368 GB, free: 9.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.334, allocations: 3.938 kB / 0.5368 GB, free: 9.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.334, allocations: 0 / 0.5368 GB, free: 9.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.334, allocations: 0 / 0.5368 GB, free: 9.43 MB / 398.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.0006712/0.3347, allocations: 417.7 kB / 0.5372 GB, free: 8.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3347, allocations: 13.09 kB / 0.5372 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.3348, allocations: 30.75 kB / 0.5372 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.147e-05/0.3348, allocations: 6.406 kB / 0.5372 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.895e-05/0.3349, allocations: 160.4 kB / 0.5374 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.335, allocations: 8.359 kB / 0.5374 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.756e-05/0.335, allocations: 5.5 kB / 0.5374 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.87e-05/0.3351, allocations: 32.55 kB / 0.5374 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.3351, allocations: 0 / 0.5374 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.3351, allocations: 0 / 0.5374 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.3351, allocations: 0 / 0.5374 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.045e-05/0.3351, allocations: 5.344 kB / 0.5374 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.3353, allocations: 147.3 kB / 0.5376 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.848e-05/0.3353, allocations: 25.44 kB / 0.5376 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.85e-05/0.3354, allocations: 8.859 kB / 0.5376 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.3354, allocations: 5.25 kB / 0.5376 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/0.3354, allocations: 57.61 kB / 0.5377 GB, free: 8.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3354, allocations: 0 / 0.5377 GB, free: 8.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002107/0.3357, allocations: 70.98 kB / 0.5377 GB, free: 8.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.3357, allocations: 81.09 kB / 0.5378 GB, free: 8.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.819e-05/0.3358, allocations: 89.86 kB / 0.5379 GB, free: 8.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.3358, allocations: 27.11 kB / 0.5379 GB, free: 8.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.042e-05/0.3358, allocations: 84.14 kB / 0.538 GB, free: 8.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.3358, allocations: 0 / 0.538 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/0.3359, allocations: 12.31 kB / 0.538 GB, free: 7.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.336, allocations: 316.1 kB / 0.5383 GB, free: 7.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.159e-05/0.336, allocations: 4.125 kB / 0.5383 GB, free: 7.672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-06/0.336, allocations: 1.188 kB / 0.5383 GB, free: 7.672 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.226e-05/0.3361, allocations: 59.36 kB / 0.5384 GB, free: 7.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3361, allocations: 1.219 kB / 0.5384 GB, free: 7.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.874e-05/0.3362, allocations: 73.02 kB / 0.5384 GB, free: 7.523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/0.3362, allocations: 31.92 kB / 0.5385 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3362, allocations: 0 / 0.5385 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3362, allocations: 1.094 kB / 0.5385 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3362, allocations: 0 / 0.5385 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.3363, allocations: 4.094 kB / 0.5385 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.3363, allocations: 1.031 kB / 0.5385 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.3363, allocations: 1.156 kB / 0.5385 GB, free: 7.488 MB / 398.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 9.458e-05/0.3364, allocations: 137.7 kB / 0.5386 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.3364, allocations: 5.094 kB / 0.5386 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.226e-06/0.3364, allocations: 3.125 kB / 0.5386 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.3364, allocations: 0 / 0.5386 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3364, allocations: 1.031 kB / 0.5386 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.3364, allocations: 3.938 kB / 0.5386 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.073e-05/0.3365, allocations: 159.9 kB / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3365, allocations: 0 / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3365, allocations: 0 / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3366, allocations: 0.9375 kB / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.3366, allocations: 1.406 kB / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3366, allocations: 0 / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3366, allocations: 0 / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.816e-05/0.3367, allocations: 104.9 kB / 0.5389 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-05/0.3367, allocations: 86.58 kB / 0.539 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.3368, allocations: 1.125 kB / 0.539 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.053e-05/0.3368, allocations: 4 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.453e-05/0.3368, allocations: 1.562 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3368, allocations: 0 / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.683e-05/0.3368, allocations: 76.66 kB / 0.539 GB, free: 6.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3368, allocations: 0 / 0.539 GB, free: 6.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001232/0.3381, allocations: 275.8 kB / 0.5393 GB, free: 6.797 MB / 398.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.001795/0.3399, allocations: 0.9398 MB / 0.5402 GB, free: 6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.34, allocations: 56.88 kB / 0.5403 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.34, allocations: 0 / 0.5403 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.665e-05/0.3401, allocations: 55.22 kB / 0.5403 GB, free: 5.875 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.3402, allocations: 4.469 kB / 0.5403 GB, free: 5.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005065/0.3407, allocations: 171.6 kB / 0.5405 GB, free: 5.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.341, allocations: 0.67 MB / 0.5412 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.891e-06/0.341, allocations: 0 / 0.5412 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.782e-05/0.341, allocations: 9.625 kB / 0.5412 GB, free: 4.996 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.341, allocations: 0 / 0.5412 GB, free: 4.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03317/0.3742, allocations: 8.214 MB / 0.5492 GB, free: 14.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.704/8.078, allocations: 12.58 kB / 0.5492 GB, free: 14.23 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b_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_TestMatrices2b.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)