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.001353/0.001353, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001523/0.001523, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 227.4 MB / 246.8 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.2392/0.2392, allocations: 46.12 MB / 344.2 MB, free: 11.52 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.002303/0.002303, allocations: 84.97 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1317, allocations: 62.44 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001886/0.1336, allocations: 0.4918 MB / 480.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.1369, allocations: 2.137 MB / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.914e-05/0.137, allocations: 0 / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.265e-05/0.137, allocations: 0 / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.9e-06/0.137, allocations: 0 / 482.8 MB, free: 2.465 MB / 350.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.002105/0.1391, allocations: 0.719 MB / 483.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.258e-05/0.1392, allocations: 4 kB / 483.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.1392, allocations: 7.938 kB / 483.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.1393, allocations: 3.938 kB / 483.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.435e-05/0.1393, allocations: 3.984 kB / 483.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-06/0.1393, allocations: 4 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002103/0.1414, allocations: 1.408 MB / 485 MB, free: 324 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-06/0.1414, allocations: 0 / 485 MB, free: 324 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.512e-05/0.1415, allocations: 0 / 485 MB, free: 324 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.1433, allocations: 1.567 MB / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1433, allocations: 0 / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1433, allocations: 0 / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.1433, allocations: 4 kB / 486.5 MB, free: 14.74 MB / 366.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.0006729/0.144, allocations: 413.2 kB / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.144, allocations: 12.03 kB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.84e-05/0.1441, allocations: 30.75 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.1441, allocations: 0.9375 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.1443, allocations: 164.3 kB / 487.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.1443, allocations: 384 / 487.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.1443, allocations: 3.938 kB / 487.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.1444, allocations: 37.69 kB / 487.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1444, allocations: 0 / 487.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.1444, allocations: 0 / 487.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1444, allocations: 3.984 kB / 487.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.18e-05/0.1445, allocations: 4 kB / 487.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001636/0.1446, allocations: 145.7 kB / 487.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.124e-05/0.1447, allocations: 22.45 kB / 487.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.191e-05/0.1447, allocations: 16.94 kB / 487.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.1448, allocations: 4 kB / 487.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.1448, allocations: 56.27 kB / 487.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.1448, allocations: 0 / 487.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000201/0.145, allocations: 67.39 kB / 487.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.1451, allocations: 77.11 kB / 487.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.462e-05/0.1452, allocations: 93.84 kB / 487.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.1452, allocations: 29.64 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.653e-05/0.1452, allocations: 84.27 kB / 487.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.1453, allocations: 8.188 kB / 487.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.1453, allocations: 13.66 kB / 487.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1455, allocations: 310.8 kB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/0.1455, allocations: 4 kB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.1455, allocations: 0 / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.447e-05/0.1456, allocations: 64.27 kB / 488.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1456, allocations: 0 / 488.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.233e-05/0.1457, allocations: 67.39 kB / 488.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.436e-05/0.1457, allocations: 37.64 kB / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1457, allocations: 0 / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1457, allocations: 0 / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1458, allocations: 0 / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1458, allocations: 0 / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.1458, allocations: 3.938 kB / 488.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.1458, allocations: 4 kB / 488.3 MB, free: 12.72 MB / 366.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.0001172/0.1459, allocations: 143.5 kB / 488.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.959e-06/0.1459, allocations: 7.969 kB / 488.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.054e-05/0.146, allocations: 7.125 kB / 488.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.146, allocations: 0 / 488.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.146, allocations: 0 / 488.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.146, allocations: 0 / 488.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.1461, allocations: 149.6 kB / 488.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1461, allocations: 0 / 488.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1461, allocations: 0 / 488.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1461, allocations: 4 kB / 488.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1462, allocations: 4 kB / 488.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1462, allocations: 0 / 488.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1462, allocations: 4 kB / 488.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.1463, allocations: 94.77 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.1463, allocations: 77.11 kB / 488.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.1464, allocations: 0 / 488.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.446e-06/0.1464, allocations: 0 / 488.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.824e-05/0.1464, allocations: 3.938 kB / 488.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.443e-06/0.1464, allocations: 4 kB / 488.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.904e-05/0.1465, allocations: 83.25 kB / 488.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1465, allocations: 0 / 488.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009043/0.1474, allocations: 276 kB / 489.1 MB, free: 11.77 MB / 366.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.001773/0.1491, allocations: 0.9288 MB / 490.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.1493, allocations: 67.33 kB / 490.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1493, allocations: 0 / 490.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.1493, allocations: 59.41 kB / 490.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.1495, allocations: 4 kB / 490.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/0.15, allocations: 158.5 kB / 490.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1503, allocations: 0.669 MB / 491 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.005e-06/0.1503, allocations: 4 kB / 491 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.566e-05/0.1503, allocations: 7.438 kB / 491 MB, free: 9.77 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1503, allocations: 128 / 491 MB, free: 9.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03578/0.1861, allocations: 8.309 MB / 499.3 MB, free: 1.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.294, allocations: 20.77 kB / 499.4 MB, free: 1.488 MB / 366.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)