Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 104.3 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2392/0.2392, allocations: 44.19 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002455/0.002455, allocations: 61.3 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1298, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001719/0.1316, allocations: 491.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002681/0.1343, allocations: 2.097 MB / 471.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.59e-05/0.1343, allocations: 0 / 471.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.72e-05/0.1343, allocations: 0 / 471.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.1344, allocations: 0 / 471.9 MB, free: 11.68 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.001793/0.1362, allocations: 0.7273 MB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.426e-05/0.1362, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.896e-05/0.1363, allocations: 7.938 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.254e-05/0.1363, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.602e-05/0.1363, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.719e-06/0.1363, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001694/0.138, allocations: 1.408 MB / 474.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.247e-05/0.138, allocations: 4 kB / 474.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.1381, allocations: 7.922 kB / 474.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.1396, allocations: 1.556 MB / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1396, allocations: 0 / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1396, allocations: 0 / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1396, allocations: 0 / 475.6 MB, free: 7.965 MB / 350.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.0005957/0.1402, allocations: 417.2 kB / 476 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1402, allocations: 8.031 kB / 476.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.023e-05/0.1403, allocations: 34.75 kB / 476.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.1403, allocations: 8.922 kB / 476.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.671e-05/0.1404, allocations: 160.4 kB / 476.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.1404, allocations: 384 / 476.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.1404, allocations: 7.875 kB / 476.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.598e-05/0.1405, allocations: 29.7 kB / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1405, allocations: 0 / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.1405, allocations: 0 / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1405, allocations: 0 / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.519e-05/0.1406, allocations: 0 / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.1407, allocations: 157.7 kB / 476.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.584e-05/0.1407, allocations: 18.52 kB / 476.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.649e-05/0.1408, allocations: 16.89 kB / 476.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.044e-06/0.1408, allocations: 0 / 476.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.1408, allocations: 56.27 kB / 476.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1408, allocations: 0 / 476.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001584/0.141, allocations: 75.47 kB / 476.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.141, allocations: 77.11 kB / 476.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.887e-05/0.1411, allocations: 89.86 kB / 476.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.1411, allocations: 25.7 kB / 476.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.235e-05/0.1411, allocations: 80.14 kB / 476.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.1412, allocations: 4.188 kB / 476.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.543e-05/0.1412, allocations: 13.72 kB / 476.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1413, allocations: 314.8 kB / 477.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.1413, allocations: 7.969 kB / 477.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.003e-05/0.1413, allocations: 7.984 kB / 477.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.496e-05/0.1414, allocations: 60.27 kB / 477.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1414, allocations: 0 / 477.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.314e-05/0.1415, allocations: 63.28 kB / 477.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.1415, allocations: 41.64 kB / 477.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1415, allocations: 3.984 kB / 477.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.1415, allocations: 0 / 477.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1415, allocations: 0 / 477.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1416, allocations: 4.094 kB / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.443e-05/0.1416, allocations: 0 / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.1416, allocations: 0 / 477.4 MB, free: 5.938 MB / 350.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 7.787e-05/0.1417, allocations: 143.4 kB / 477.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.1417, allocations: 3.938 kB / 477.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.166e-05/0.1417, allocations: 7.109 kB / 477.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1417, allocations: 0 / 477.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1417, allocations: 4 kB / 477.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1417, allocations: 0 / 477.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.027e-05/0.1418, allocations: 153.6 kB / 477.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1418, allocations: 4 kB / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1418, allocations: 0 / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1418, allocations: 0 / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.1419, allocations: 4 kB / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1419, allocations: 0 / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1419, allocations: 0 / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.71e-05/0.142, allocations: 90.77 kB / 477.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.311e-05/0.142, allocations: 85.14 kB / 477.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.142, allocations: 0 / 477.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.318e-06/0.142, allocations: 0 / 477.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.41e-05/0.1421, allocations: 4 kB / 477.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1421, allocations: 3.984 kB / 477.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.681e-05/0.1421, allocations: 83.22 kB / 478 MB, free: 5.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1421, allocations: 0 / 478 MB, free: 5.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000784/0.1429, allocations: 268 kB / 478.2 MB, free: 4.992 MB / 350.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.001596/0.1445, allocations: 0.9368 MB / 479.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.296e-05/0.1446, allocations: 59.41 kB / 479.2 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1446, allocations: 0 / 479.2 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.191e-05/0.1447, allocations: 59.34 kB / 479.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.1448, allocations: 0 / 479.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004861/0.1453, allocations: 166.7 kB / 479.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.1455, allocations: 0.6729 MB / 480.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.142e-06/0.1456, allocations: 0 / 480.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.1456, allocations: 11.44 kB / 480.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1456, allocations: 0 / 480.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.1921, allocations: 8.301 MB / 488.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.765/8.957, allocations: 13.03 kB / 488.4 MB, free: 10.71 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)