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.001138/0.001138, allocations: 122.8 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.001611/0.001611, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2219/0.2219, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 71.89 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3421, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001511/0.3436, allocations: 0.4899 MB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00271/0.3464, allocations: 2.145 MB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.901e-05/0.3464, allocations: 0 / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.383e-05/0.3464, allocations: 0 / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.49e-06/0.3464, allocations: 3.938 kB / 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.001787/0.3482, allocations: 0.7117 MB / 0.5338 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.443e-05/0.3483, allocations: 2.75 kB / 0.5338 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.892e-05/0.3483, allocations: 11.98 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.3484, allocations: 5.359 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.717e-05/0.3484, allocations: 0 / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.3484, allocations: 1.375 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.3502, allocations: 1.504 MB / 0.5352 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.825e-06/0.3502, allocations: 0 / 0.5352 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.843e-05/0.3503, allocations: 5.25 kB / 0.5353 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.3518, allocations: 1.555 MB / 0.5368 GB, free: 9.441 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3518, allocations: 0 / 0.5368 GB, free: 9.441 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.3519, allocations: 3.984 kB / 0.5368 GB, free: 9.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3519, allocations: 1.719 kB / 0.5368 GB, free: 9.438 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.0005977/0.3525, allocations: 412.5 kB / 0.5372 GB, free: 9.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.3525, allocations: 10 kB / 0.5372 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.597e-05/0.3525, allocations: 30.75 kB / 0.5372 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.248e-05/0.3526, allocations: 0.9375 kB / 0.5372 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.728e-05/0.3527, allocations: 161.8 kB / 0.5374 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3527, allocations: 4.375 kB / 0.5374 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.3527, allocations: 5.531 kB / 0.5374 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.446e-05/0.3528, allocations: 35.16 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.3528, allocations: 0 / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.3528, allocations: 1.5 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.3528, allocations: 0 / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.828e-05/0.3528, allocations: 1.594 kB / 0.5374 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.353, allocations: 151 kB / 0.5376 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.04e-05/0.353, allocations: 24.17 kB / 0.5376 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.29e-05/0.353, allocations: 6.359 kB / 0.5376 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.3531, allocations: 0 / 0.5376 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.3531, allocations: 69.47 kB / 0.5376 GB, free: 8.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.3531, allocations: 0 / 0.5376 GB, free: 8.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.3533, allocations: 62.81 kB / 0.5377 GB, free: 8.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.3533, allocations: 78.52 kB / 0.5378 GB, free: 8.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.977e-05/0.3534, allocations: 93.98 kB / 0.5379 GB, free: 8.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.3534, allocations: 25.7 kB / 0.5379 GB, free: 8.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.223e-05/0.3534, allocations: 81.7 kB / 0.538 GB, free: 8.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.3534, allocations: 6.156 kB / 0.538 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/0.3535, allocations: 15.17 kB / 0.538 GB, free: 8.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3536, allocations: 320.3 kB / 0.5383 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.3536, allocations: 0 / 0.5383 GB, free: 7.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.964e-06/0.3536, allocations: 1.5 kB / 0.5383 GB, free: 7.691 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.978e-05/0.3537, allocations: 67.23 kB / 0.5384 GB, free: 7.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3537, allocations: 1.406 kB / 0.5384 GB, free: 7.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.615e-05/0.3537, allocations: 65.95 kB / 0.5384 GB, free: 7.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.3538, allocations: 35.48 kB / 0.5385 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3538, allocations: 0 / 0.5385 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3538, allocations: 0 / 0.5385 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3538, allocations: 0 / 0.5385 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3538, allocations: 1.5 kB / 0.5385 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.3539, allocations: 0 / 0.5385 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.3539, allocations: 5.062 kB / 0.5385 GB, free: 7.504 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.05e-05/0.354, allocations: 133.6 kB / 0.5386 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.354, allocations: 5.031 kB / 0.5386 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.426e-06/0.354, allocations: 7.109 kB / 0.5386 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.354, allocations: 0.9062 kB / 0.5386 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.354, allocations: 0 / 0.5386 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.354, allocations: 5.125 kB / 0.5386 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.653e-05/0.3541, allocations: 146.6 kB / 0.5388 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3541, allocations: 0 / 0.5388 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.3541, allocations: 5.031 kB / 0.5388 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3541, allocations: 0 / 0.5388 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.3541, allocations: 13.11 kB / 0.5388 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3541, allocations: 0 / 0.5388 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3541, allocations: 1.094 kB / 0.5388 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.391e-05/0.3542, allocations: 89.66 kB / 0.5389 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.552e-05/0.3543, allocations: 81.09 kB / 0.5389 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.3543, allocations: 1.312 kB / 0.5389 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.388e-06/0.3543, allocations: 5.656 kB / 0.5389 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.319e-05/0.3543, allocations: 4 kB / 0.5389 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.3543, allocations: 1.312 kB / 0.5389 GB, free: 6.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.374e-05/0.3544, allocations: 75.28 kB / 0.539 GB, free: 6.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3544, allocations: 3.938 kB / 0.539 GB, free: 6.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009329/0.3553, allocations: 268.2 kB / 0.5393 GB, free: 6.828 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.001557/0.3569, allocations: 0.9369 MB / 0.5402 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.781e-05/0.357, allocations: 68.45 kB / 0.5403 GB, free: 5.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.357, allocations: 1.031 kB / 0.5403 GB, free: 5.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.372e-05/0.357, allocations: 58.59 kB / 0.5403 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.3572, allocations: 2.5 kB / 0.5403 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000521/0.3577, allocations: 164.2 kB / 0.5405 GB, free: 5.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.358, allocations: 0.6738 MB / 0.5411 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.323e-06/0.358, allocations: 0 / 0.5411 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.358, allocations: 9.406 kB / 0.5411 GB, free: 5.02 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3581, allocations: 0 / 0.5411 GB, free: 5.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.3861, allocations: 8.223 MB / 0.5492 GB, free: 14.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/8.067, allocations: 11.64 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)