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.001118/0.001118, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3648, allocations: 62.42 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001685/0.3665, allocations: 494.7 kB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.3687, allocations: 1.606 MB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.975e-05/0.3688, allocations: 4 kB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.368e-05/0.3688, allocations: 0 / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.045e-06/0.3688, allocations: 1.25 kB / 0.5325 GB, free: 11.79 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.0008889/0.3697, allocations: 272 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.297e-05/0.3698, allocations: 9.266 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.606e-05/0.3698, allocations: 5.516 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.3699, allocations: 1.438 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.124e-05/0.3699, allocations: 4 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-06/0.3699, allocations: 0 / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000706/0.3706, allocations: 499.3 kB / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-06/0.3706, allocations: 0 / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.878e-05/0.3706, allocations: 1.375 kB / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.3711, allocations: 316.8 kB / 0.5336 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3711, allocations: 0 / 0.5336 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3711, allocations: 0 / 0.5336 GB, free: 11.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3711, allocations: 4 kB / 0.5336 GB, free: 11.21 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.0003894/0.3715, allocations: 370.5 kB / 0.5339 GB, free: 10.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.3716, allocations: 9.625 kB / 0.534 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.365e-05/0.3716, allocations: 32.12 kB / 0.534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.644e-05/0.3716, allocations: 0.9375 kB / 0.534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.46e-05/0.3717, allocations: 164.4 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.3717, allocations: 1.75 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.3718, allocations: 1.75 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.623e-05/0.3718, allocations: 35.2 kB / 0.5342 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.3719, allocations: 3.984 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.3719, allocations: 1.375 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.3719, allocations: 0 / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.679e-05/0.3719, allocations: 5.312 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.3721, allocations: 151 kB / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.592e-05/0.3721, allocations: 15.95 kB / 0.5344 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.379e-05/0.3721, allocations: 6.234 kB / 0.5344 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.3721, allocations: 5.375 kB / 0.5344 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.3722, allocations: 61.58 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3722, allocations: 0 / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001719/0.3724, allocations: 70.2 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.3724, allocations: 78.48 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.601e-05/0.3725, allocations: 89.86 kB / 0.5347 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3725, allocations: 25.7 kB / 0.5347 GB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.335e-05/0.3725, allocations: 89.39 kB / 0.5348 GB, free: 9.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.3726, allocations: 8.031 kB / 0.5348 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.3726, allocations: 12.47 kB / 0.5348 GB, free: 9.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.3727, allocations: 314.8 kB / 0.5351 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-06/0.3727, allocations: 1.375 kB / 0.5351 GB, free: 9.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.51e-06/0.3727, allocations: 1.375 kB / 0.5351 GB, free: 9.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.315e-05/0.3728, allocations: 63 kB / 0.5351 GB, free: 9.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3728, allocations: 3.938 kB / 0.5351 GB, free: 9.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.043e-05/0.3729, allocations: 62.34 kB / 0.5352 GB, free: 9.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.3729, allocations: 36.52 kB / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3729, allocations: 0 / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3729, allocations: 0 / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.3729, allocations: 0 / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.3729, allocations: 5.359 kB / 0.5352 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.889e-05/0.373, allocations: 11.98 kB / 0.5353 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.373, allocations: 5.375 kB / 0.5353 GB, free: 9.297 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 8.316e-05/0.3731, allocations: 134.3 kB / 0.5354 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.007e-05/0.3731, allocations: 7.969 kB / 0.5354 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.806e-06/0.3731, allocations: 4.5 kB / 0.5354 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3731, allocations: 0 / 0.5354 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3731, allocations: 0 / 0.5354 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3731, allocations: 1.375 kB / 0.5354 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.447e-05/0.3732, allocations: 149.3 kB / 0.5355 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3732, allocations: 0 / 0.5355 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3732, allocations: 0 / 0.5355 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3732, allocations: 5.312 kB / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.3732, allocations: 0 / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3733, allocations: 0 / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3733, allocations: 9.312 kB / 0.5356 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.419e-05/0.3733, allocations: 89.83 kB / 0.5356 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-05/0.3734, allocations: 81.05 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.3734, allocations: 1.375 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.3734, allocations: 0 / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.407e-05/0.3734, allocations: 1.375 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-06/0.3735, allocations: 5.375 kB / 0.5357 GB, free: 8.738 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.536e-05/0.3735, allocations: 79.31 kB / 0.5358 GB, free: 8.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3735, allocations: 3.938 kB / 0.5358 GB, free: 8.656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.3738, allocations: 64.11 kB / 0.5359 GB, free: 8.641 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.0006461/0.3745, allocations: 0.7146 MB / 0.5366 GB, free: 7.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.37e-05/0.3746, allocations: 64.67 kB / 0.5366 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3746, allocations: 4.062 kB / 0.5366 GB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.382e-05/0.3746, allocations: 55.41 kB / 0.5367 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.3747, allocations: 3.844 kB / 0.5367 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003097/0.3751, allocations: 130.4 kB / 0.5368 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3753, allocations: 0.6709 MB / 0.5375 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.682e-06/0.3753, allocations: 0 / 0.5375 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.427e-05/0.3753, allocations: 8.406 kB / 0.5375 GB, free: 6.965 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3753, allocations: 3.938 kB / 0.5375 GB, free: 6.961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.3959, allocations: 2.1 MB / 0.5395 GB, free: 5.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.455/7.85, allocations: 13.83 kB / 0.5395 GB, free: 5.762 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)