Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 79.86 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.33, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001501/0.3315, allocations: 493.7 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.3334, allocations: 1.567 MB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.688e-05/0.3335, allocations: 0 / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.085e-05/0.3335, allocations: 0 / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.3335, allocations: 3.75 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007785/0.3343, allocations: 221.1 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.969e-05/0.3343, allocations: 9.078 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.527e-05/0.3344, allocations: 5.156 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.645e-05/0.3344, allocations: 1.125 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.53e-05/0.3344, allocations: 4 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-06/0.3344, allocations: 1.25 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008894/0.3353, allocations: 0.7079 MB / 0.5334 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-06/0.3353, allocations: 0 / 0.5334 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.111e-05/0.3354, allocations: 1.375 kB / 0.5334 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006292/0.336, allocations: 0.6396 MB / 0.5341 GB, free: 11.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.336, allocations: 0 / 0.5341 GB, free: 11.06 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.336, allocations: 0 / 0.5341 GB, free: 11.06 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.336, allocations: 4 kB / 0.5341 GB, free: 11.05 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.0003974/0.3364, allocations: 372.1 kB / 0.5344 GB, free: 10.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3365, allocations: 9.969 kB / 0.5344 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.821e-05/0.3365, allocations: 30.75 kB / 0.5344 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.119e-05/0.3365, allocations: 2 kB / 0.5344 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.39e-05/0.3366, allocations: 164.4 kB / 0.5346 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3366, allocations: 1.5 kB / 0.5346 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-06/0.3367, allocations: 1.469 kB / 0.5346 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.668e-05/0.3367, allocations: 35.98 kB / 0.5346 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.291e-06/0.3368, allocations: 0 / 0.5346 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.3368, allocations: 3.984 kB / 0.5346 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.3368, allocations: 1.156 kB / 0.5346 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.057e-05/0.3368, allocations: 9.125 kB / 0.5347 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001219/0.3369, allocations: 147 kB / 0.5348 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.139e-05/0.337, allocations: 15.89 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.177e-05/0.337, allocations: 6.297 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.457e-06/0.337, allocations: 5.156 kB / 0.5348 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.337, allocations: 65.52 kB / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3371, allocations: 0 / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001666/0.3372, allocations: 66.73 kB / 0.5349 GB, free: 9.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.3373, allocations: 81.05 kB / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.384e-05/0.3373, allocations: 95 kB / 0.5351 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.3373, allocations: 25.7 kB / 0.5351 GB, free: 9.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.862e-05/0.3374, allocations: 80.14 kB / 0.5352 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.3374, allocations: 5.375 kB / 0.5352 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/0.3374, allocations: 16.06 kB / 0.5352 GB, free: 9.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3375, allocations: 314.8 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-06/0.3376, allocations: 1.094 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/0.3376, allocations: 0.9688 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.42e-05/0.3376, allocations: 64 kB / 0.5356 GB, free: 9.258 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3376, allocations: 0 / 0.5356 GB, free: 9.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.166e-05/0.3377, allocations: 69.78 kB / 0.5357 GB, free: 9.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.3377, allocations: 35.14 kB / 0.5357 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.3377, allocations: 1.375 kB / 0.5357 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.3378, allocations: 0 / 0.5357 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3378, allocations: 3.938 kB / 0.5357 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.3378, allocations: 1.156 kB / 0.5357 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.405e-05/0.3378, allocations: 0 / 0.5357 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.3378, allocations: 5.109 kB / 0.5357 GB, free: 9.141 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 7.776e-05/0.3379, allocations: 134.4 kB / 0.5358 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-06/0.3379, allocations: 7.969 kB / 0.5358 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.003e-06/0.3379, allocations: 4.5 kB / 0.5359 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3379, allocations: 0 / 0.5359 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3379, allocations: 4 kB / 0.5359 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3379, allocations: 1.062 kB / 0.5359 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.38e-05/0.338, allocations: 147 kB / 0.536 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.338, allocations: 0 / 0.536 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.338, allocations: 0 / 0.536 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.338, allocations: 5 kB / 0.536 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.338, allocations: 4.922 kB / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3381, allocations: 0 / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3381, allocations: 5 kB / 0.536 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.307e-05/0.3381, allocations: 97.2 kB / 0.5361 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/0.3382, allocations: 81.05 kB / 0.5362 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.3382, allocations: 1.781 kB / 0.5362 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-06/0.3382, allocations: 0 / 0.5362 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.223e-05/0.3382, allocations: 1.031 kB / 0.5362 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.3382, allocations: 0.875 kB / 0.5362 GB, free: 8.574 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.314e-05/0.3383, allocations: 79.31 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3383, allocations: 1.188 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004047/0.3387, allocations: 120.4 kB / 0.5364 GB, free: 8.484 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.0009138/0.3396, allocations: 0.705 MB / 0.5371 GB, free: 7.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.732e-05/0.3397, allocations: 61.3 kB / 0.5371 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3397, allocations: 0 / 0.5371 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.365e-05/0.3398, allocations: 59.19 kB / 0.5372 GB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.3399, allocations: 12.3 kB / 0.5372 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000324/0.3402, allocations: 126.7 kB / 0.5373 GB, free: 7.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.3404, allocations: 0.67 MB / 0.538 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.833e-06/0.3404, allocations: 0 / 0.538 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.313e-05/0.3405, allocations: 12.53 kB / 0.538 GB, free: 6.812 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3405, allocations: 0 / 0.538 GB, free: 6.812 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.3614, allocations: 4.716 MB / 0.5426 GB, free: 4.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.857, allocations: 5.516 kB / 0.5426 GB, free: 4.258 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3_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_TestMatrices3.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe 2>&1)