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.00109/0.00109, allocations: 99.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2342/0.2342, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003012, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1416, allocations: 63.46 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006872/0.1423, allocations: 214.9 kB / 481.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001969/0.1443, allocations: 1.533 MB / 483.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.402e-05/0.1444, allocations: 3.938 kB / 483.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.278e-06/0.1444, allocations: 0 / 483.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-06/0.1444, allocations: 0 / 483.3 MB, free: 3.496 MB / 350.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.0007001/0.1451, allocations: 231 kB / 483.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.183e-05/0.1451, allocations: 4 kB / 483.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.209e-05/0.1452, allocations: 3.984 kB / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.784e-05/0.1452, allocations: 0 / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.991e-05/0.1452, allocations: 0 / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.1452, allocations: 0 / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005503/0.1458, allocations: 435.2 kB / 483.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.869e-06/0.1458, allocations: 0 / 483.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.549e-05/0.1458, allocations: 25.7 kB / 483.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.1461, allocations: 215.7 kB / 484.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1461, allocations: 3.938 kB / 484.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1462, allocations: 0 / 484.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1462, allocations: 0 / 484.2 MB, free: 2.594 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.0003232/0.1465, allocations: 369.1 kB / 484.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1465, allocations: 12.03 kB / 484.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.1466, allocations: 30.56 kB / 484.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.984e-05/0.1466, allocations: 0 / 484.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.94e-05/0.1467, allocations: 171 kB / 484.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.1467, allocations: 4 kB / 484.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.1467, allocations: 0 / 484.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.078e-05/0.1468, allocations: 37.62 kB / 484.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.1468, allocations: 4 kB / 484.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.1469, allocations: 0 / 484.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1469, allocations: 0 / 484.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.817e-05/0.1469, allocations: 8 kB / 484.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.147, allocations: 145.6 kB / 484.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.004e-05/0.1471, allocations: 22.55 kB / 484.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-06/0.1471, allocations: 0 / 484.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.29e-05/0.1472, allocations: 68.19 kB / 485 MB, free: 1.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1472, allocations: 0 / 485 MB, free: 1.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.1473, allocations: 63.47 kB / 485.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1474, allocations: 77.11 kB / 485.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.977e-05/0.1475, allocations: 93.86 kB / 485.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.1475, allocations: 25.7 kB / 485.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.849e-05/0.1475, allocations: 80.14 kB / 485.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.1475, allocations: 7.906 kB / 485.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.1475, allocations: 0 / 485.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1477, allocations: 314.8 kB / 485.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.574e-06/0.1477, allocations: 128 / 485.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.242e-05/0.1477, allocations: 8 kB / 485.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.039e-05/0.1478, allocations: 33.58 kB / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1478, allocations: 3.953 kB / 485.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.354e-05/0.1478, allocations: 59.41 kB / 485.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.1479, allocations: 33.69 kB / 485.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.1479, allocations: 0 / 485.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1479, allocations: 0 / 485.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1479, allocations: 4 kB / 485.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1479, allocations: 0 / 485.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.1479, allocations: 4.094 kB / 485.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.148, allocations: 0 / 485.8 MB, free: 0.6836 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.006e-05/0.148, allocations: 139.5 kB / 485.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-06/0.1481, allocations: 3.953 kB / 485.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.072e-05/0.1481, allocations: 3.125 kB / 485.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.1481, allocations: 0 / 485.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.1481, allocations: 0 / 485.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1481, allocations: 3.984 kB / 486 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.1482, allocations: 146 kB / 486.1 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1482, allocations: 4 kB / 486.1 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.335e-06/0.1482, allocations: 3.953 kB / 486.1 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.1482, allocations: 0 / 486.1 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.1483, allocations: 0 / 486.1 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1483, allocations: 3.938 kB / 486.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1483, allocations: 0 / 486.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.548e-05/0.1484, allocations: 90.83 kB / 486.2 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.1484, allocations: 77.11 kB / 486.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.1484, allocations: 11.98 kB / 486.3 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-06/0.1484, allocations: 0 / 486.3 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.48e-05/0.1485, allocations: 3.984 kB / 486.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.1485, allocations: 3.938 kB / 486.3 MB, free: 96 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.208e-05/0.1485, allocations: 79.28 kB / 486.4 MB, free: 16 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1485, allocations: 0 / 486.4 MB, free: 16 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1488, allocations: 60.05 kB / 486.4 MB, free: 15.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006795/0.1495, allocations: 0.7302 MB / 487.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.354e-05/0.1496, allocations: 59.41 kB / 487.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1496, allocations: 0 / 487.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.867e-05/0.1497, allocations: 55.41 kB / 487.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.958e-05/0.1497, allocations: 7.891 kB / 487.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.1501, allocations: 128.4 kB / 487.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.1503, allocations: 0.6733 MB / 488.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.183e-06/0.1503, allocations: 0 / 488.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/0.1503, allocations: 15.38 kB / 488.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1503, allocations: 0 / 488.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01227/0.1626, allocations: 1.858 MB / 489.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/0.1629, allocations: 196.7 kB / 490.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/1.986, allocations: 0 / 490.1 MB, free: 12.18 MB / 366.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat does not exist to compare? outputFormat=mat