Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 197.2 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.436/1.436, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.235/0.235, allocations: 46.13 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002845/0.002845, allocations: 79.86 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3636, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001644/0.3653, allocations: 490.2 kB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.3677, allocations: 1.613 MB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.646e-05/0.3678, allocations: 0 / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.539e-05/0.3678, allocations: 0 / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.3678, allocations: 0 / 0.5327 GB, free: 11.7 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.3687, allocations: 272.5 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.69e-05/0.3687, allocations: 5.969 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.396e-05/0.3688, allocations: 2.844 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.359e-05/0.3688, allocations: 4 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.817e-05/0.3688, allocations: 3.938 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.601e-06/0.3689, allocations: 0 / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007234/0.3696, allocations: 498.5 kB / 0.5334 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.3696, allocations: 0 / 0.5334 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.19e-05/0.3696, allocations: 5.359 kB / 0.5334 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004516/0.3701, allocations: 312 kB / 0.5337 GB, free: 11.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3701, allocations: 1.312 kB / 0.5337 GB, free: 11.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3701, allocations: 4 kB / 0.5337 GB, free: 11.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.3701, allocations: 0 / 0.5337 GB, free: 11.14 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.0004221/0.3706, allocations: 376 kB / 0.5341 GB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3706, allocations: 8.719 kB / 0.5341 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.34e-05/0.3707, allocations: 31.66 kB / 0.5341 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.691e-05/0.3707, allocations: 2.062 kB / 0.5341 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.3708, allocations: 160.4 kB / 0.5343 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.3708, allocations: 1.781 kB / 0.5343 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-06/0.3708, allocations: 384 / 0.5343 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.818e-05/0.3709, allocations: 40.36 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.371, allocations: 3.984 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.371, allocations: 1.125 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.371, allocations: 0 / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.351e-05/0.371, allocations: 9.578 kB / 0.5343 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.3712, allocations: 143 kB / 0.5345 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.79e-05/0.3712, allocations: 15.98 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.3713, allocations: 10.33 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.495e-06/0.3713, allocations: 0 / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/0.3713, allocations: 66.11 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3713, allocations: 0 / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001872/0.3715, allocations: 67.73 kB / 0.5346 GB, free: 10.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.3716, allocations: 77.11 kB / 0.5347 GB, free: 9.977 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.045e-05/0.3717, allocations: 93.81 kB / 0.5348 GB, free: 9.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.3717, allocations: 30.67 kB / 0.5348 GB, free: 9.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.774e-05/0.3717, allocations: 84.27 kB / 0.5349 GB, free: 9.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3718, allocations: 5.281 kB / 0.5349 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.3718, allocations: 11.38 kB / 0.5349 GB, free: 9.734 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3719, allocations: 316.1 kB / 0.5352 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-06/0.3719, allocations: 0 / 0.5352 GB, free: 9.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.801e-06/0.372, allocations: 2.312 kB / 0.5352 GB, free: 9.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.321e-05/0.372, allocations: 59.08 kB / 0.5353 GB, free: 9.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.372, allocations: 4.062 kB / 0.5353 GB, free: 9.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.032e-05/0.3721, allocations: 65.91 kB / 0.5353 GB, free: 9.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.3722, allocations: 39.28 kB / 0.5354 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3722, allocations: 5.297 kB / 0.5354 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3722, allocations: 3.938 kB / 0.5354 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.3722, allocations: 0 / 0.5354 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.3722, allocations: 0.6875 kB / 0.5354 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.824e-05/0.3722, allocations: 5.281 kB / 0.5354 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.3722, allocations: 0 / 0.5354 GB, free: 9.223 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.379e-05/0.3723, allocations: 138.4 kB / 0.5355 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.3724, allocations: 5.375 kB / 0.5355 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.977e-06/0.3724, allocations: 3.125 kB / 0.5355 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3724, allocations: 3.984 kB / 0.5355 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3724, allocations: 1.344 kB / 0.5355 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.3724, allocations: 0 / 0.5355 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.3725, allocations: 147 kB / 0.5357 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3725, allocations: 4 kB / 0.5357 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-06/0.3725, allocations: 1.438 kB / 0.5357 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3725, allocations: 3.938 kB / 0.5357 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.3725, allocations: 5.281 kB / 0.5357 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3725, allocations: 0 / 0.5357 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3726, allocations: 0 / 0.5357 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.3727, allocations: 94.42 kB / 0.5358 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.3727, allocations: 81.05 kB / 0.5358 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.3727, allocations: 4.859 kB / 0.5358 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.3727, allocations: 1.562 kB / 0.5358 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.253e-05/0.3728, allocations: 32 / 0.5358 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.3728, allocations: 5.312 kB / 0.5359 GB, free: 8.652 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.615e-05/0.3728, allocations: 79.22 kB / 0.5359 GB, free: 8.574 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3728, allocations: 0 / 0.5359 GB, free: 8.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003297/0.3732, allocations: 63.58 kB / 0.536 GB, free: 8.559 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.00078/0.3739, allocations: 0.7267 MB / 0.5367 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.3741, allocations: 61.03 kB / 0.5368 GB, free: 7.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3741, allocations: 0 / 0.5368 GB, free: 7.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.3741, allocations: 54.75 kB / 0.5368 GB, free: 7.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.3742, allocations: 2.344 kB / 0.5368 GB, free: 7.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.3746, allocations: 129.7 kB / 0.5369 GB, free: 7.582 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.3749, allocations: 0.6742 MB / 0.5376 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.3749, allocations: 0 / 0.5376 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.442e-05/0.3749, allocations: 8.656 kB / 0.5376 GB, free: 6.875 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3749, allocations: 128 / 0.5376 GB, free: 6.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/0.3988, allocations: 2.094 MB / 0.5396 GB, free: 5.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.379, allocations: 6.094 kB / 0.5397 GB, free: 5.684 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1)