Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001324/0.001324, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2256/0.2256, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 76.11 kB / 480.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.345, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001665/0.3468, allocations: 494.9 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003652/0.3504, allocations: 2.142 MB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.44e-05/0.3505, allocations: 0 / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.93e-05/0.3506, allocations: 3.938 kB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-06/0.3506, allocations: 0 / 0.5331 GB, free: 11.36 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.002241/0.3528, allocations: 0.7311 MB / 0.5339 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.069e-05/0.3529, allocations: 1.844 kB / 0.5339 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.806e-05/0.3529, allocations: 3.984 kB / 0.5339 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.654e-05/0.353, allocations: 1.281 kB / 0.5339 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.357e-05/0.353, allocations: 4.953 kB / 0.5339 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-06/0.353, allocations: 0 / 0.5339 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.3556, allocations: 1.512 MB / 0.5353 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.3556, allocations: 0 / 0.5353 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.172e-05/0.3557, allocations: 1.062 kB / 0.5353 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002092/0.3578, allocations: 1.551 MB / 0.5369 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3578, allocations: 3.984 kB / 0.5369 GB, free: 9.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3578, allocations: 0 / 0.5369 GB, free: 9.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3578, allocations: 1.281 kB / 0.5369 GB, free: 9.414 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.0008062/0.3586, allocations: 416.6 kB / 0.5373 GB, free: 8.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3587, allocations: 8.906 kB / 0.5373 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.382e-05/0.3587, allocations: 35.84 kB / 0.5373 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.716e-05/0.3588, allocations: 0.9375 kB / 0.5373 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.3589, allocations: 160.4 kB / 0.5375 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3589, allocations: 1.625 kB / 0.5375 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.3589, allocations: 4.781 kB / 0.5375 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.359, allocations: 36.34 kB / 0.5375 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.359, allocations: 0 / 0.5375 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.3591, allocations: 0 / 0.5375 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3591, allocations: 1 kB / 0.5375 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.153e-05/0.3591, allocations: 4.938 kB / 0.5375 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001658/0.3593, allocations: 146.8 kB / 0.5376 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.681e-05/0.3593, allocations: 20.55 kB / 0.5377 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.925e-05/0.3593, allocations: 6.766 kB / 0.5377 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.3594, allocations: 3.938 kB / 0.5377 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.761e-05/0.3594, allocations: 65.25 kB / 0.5377 GB, free: 8.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3594, allocations: 0 / 0.5377 GB, free: 8.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001996/0.3596, allocations: 71.27 kB / 0.5378 GB, free: 8.312 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.3597, allocations: 78.23 kB / 0.5379 GB, free: 8.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.758e-05/0.3598, allocations: 89.86 kB / 0.538 GB, free: 8.121 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.3598, allocations: 25.7 kB / 0.538 GB, free: 8.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/0.3598, allocations: 81.11 kB / 0.5381 GB, free: 8.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.3599, allocations: 4 kB / 0.5381 GB, free: 8.004 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.3599, allocations: 16.39 kB / 0.5381 GB, free: 7.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3601, allocations: 319.9 kB / 0.5384 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.084e-05/0.3601, allocations: 4.125 kB / 0.5384 GB, free: 7.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-06/0.3601, allocations: 1.438 kB / 0.5384 GB, free: 7.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.412e-05/0.3602, allocations: 59.98 kB / 0.5385 GB, free: 7.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3602, allocations: 0 / 0.5385 GB, free: 7.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.451e-05/0.3603, allocations: 74.36 kB / 0.5385 GB, free: 7.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.3603, allocations: 31.08 kB / 0.5386 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.3603, allocations: 4 kB / 0.5386 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3603, allocations: 1.656 kB / 0.5386 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.3603, allocations: 4.094 kB / 0.5386 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.3604, allocations: 0 / 0.5386 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.578e-05/0.3604, allocations: 0 / 0.5386 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.3604, allocations: 1.531 kB / 0.5386 GB, free: 7.473 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 0.0001107/0.3605, allocations: 138.2 kB / 0.5387 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.346e-05/0.3605, allocations: 7.922 kB / 0.5387 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.115e-05/0.3605, allocations: 4.688 kB / 0.5387 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.3606, allocations: 0 / 0.5387 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3606, allocations: 0 / 0.5387 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3606, allocations: 4 kB / 0.5387 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.3607, allocations: 152.3 kB / 0.5389 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3607, allocations: 3.984 kB / 0.5389 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.3607, allocations: 0 / 0.5389 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.3607, allocations: 0 / 0.5389 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.3607, allocations: 5.547 kB / 0.5389 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3608, allocations: 0 / 0.5389 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3608, allocations: 0 / 0.5389 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.3609, allocations: 101.8 kB / 0.539 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/0.361, allocations: 86.66 kB / 0.539 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.361, allocations: 0 / 0.539 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.869e-06/0.361, allocations: 1.469 kB / 0.539 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.541e-05/0.361, allocations: 0 / 0.539 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.361, allocations: 1.094 kB / 0.539 GB, free: 6.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.465e-05/0.3611, allocations: 75.28 kB / 0.5391 GB, free: 6.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3611, allocations: 0 / 0.5391 GB, free: 6.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001683/0.3628, allocations: 277.2 kB / 0.5394 GB, free: 6.785 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.0022/0.365, allocations: 0.9402 MB / 0.5403 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.3651, allocations: 60.67 kB / 0.5404 GB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3651, allocations: 0 / 0.5404 GB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.64e-05/0.3652, allocations: 55.22 kB / 0.5404 GB, free: 5.859 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.3653, allocations: 1.844 kB / 0.5404 GB, free: 5.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005621/0.3659, allocations: 170.5 kB / 0.5406 GB, free: 5.684 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.3662, allocations: 0.6712 MB / 0.5412 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.08e-05/0.3662, allocations: 0 / 0.5412 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.845e-05/0.3662, allocations: 16.81 kB / 0.5413 GB, free: 4.973 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3662, allocations: 0 / 0.5413 GB, free: 4.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03527/0.4015, allocations: 8.201 MB / 0.5493 GB, free: 14.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.186/8.588, allocations: 13.56 kB / 0.5493 GB, free: 14.21 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)