Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007832/0.0007832, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008374/0.0008374, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 45.91 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002719/0.0002719, allocations: 15.94 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 63.47 MB / 481.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005266/0.1369, allocations: 203 kB / 481.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1381, allocations: 0.7447 MB / 482.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.72e-05/0.1381, allocations: 4 kB / 482.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.828e-06/0.1381, allocations: 0 / 482.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.1383, allocations: 7.938 kB / 482.6 MB, free: 4.297 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.1385, allocations: 43.89 kB / 482.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.858e-05/0.1386, allocations: 3.984 kB / 482.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.526e-05/0.1386, allocations: 4 kB / 482.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.761e-05/0.1387, allocations: 0 / 482.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.977e-05/0.1388, allocations: 4 kB / 482.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.744e-06/0.1388, allocations: 0 / 482.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.1389, allocations: 47.95 kB / 482.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1389, allocations: 0 / 482.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.104e-05/0.1389, allocations: 33.64 kB / 482.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.357e-05/0.139, allocations: 35.89 kB / 482.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1391, allocations: 0 / 482.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1391, allocations: 4 kB / 482.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.1391, allocations: 0 / 482.8 MB, free: 4.117 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.0003709/0.1394, allocations: 349.1 kB / 483.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1395, allocations: 8.031 kB / 483.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.632e-05/0.1395, allocations: 34.56 kB / 483.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.1396, allocations: 0 / 483.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.1397, allocations: 171 kB / 483.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.1397, allocations: 4 kB / 483.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.1397, allocations: 0 / 483.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.275e-05/0.1398, allocations: 29.7 kB / 483.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-06/0.1398, allocations: 0 / 483.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.1398, allocations: 0 / 483.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1398, allocations: 0 / 483.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.923e-05/0.1399, allocations: 7.938 kB / 483.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000151/0.14, allocations: 153.6 kB / 483.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.308e-05/0.1401, allocations: 22.61 kB / 483.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.319e-05/0.1401, allocations: 4.859 kB / 483.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.14e-06/0.1401, allocations: 0 / 483.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.1402, allocations: 56.27 kB / 483.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.1402, allocations: 0 / 483.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001884/0.1404, allocations: 71.39 kB / 483.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.1404, allocations: 85.05 kB / 483.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.916e-05/0.1405, allocations: 93.98 kB / 483.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.1405, allocations: 25.7 kB / 483.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.054e-05/0.1406, allocations: 80.14 kB / 483.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.1406, allocations: 3.906 kB / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.175e-06/0.1406, allocations: 0 / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1407, allocations: 322.8 kB / 484.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-06/0.1408, allocations: 3.938 kB / 484.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.1408, allocations: 4.125 kB / 484.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.376e-05/0.1408, allocations: 33.77 kB / 484.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1408, allocations: 0 / 484.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.618e-05/0.1409, allocations: 63.34 kB / 484.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.141, allocations: 29.7 kB / 484.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.141, allocations: 3.984 kB / 484.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.141, allocations: 0 / 484.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.141, allocations: 0 / 484.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.141, allocations: 0 / 484.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.937e-05/0.141, allocations: 4.281 kB / 484.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.141, allocations: 4.031 kB / 484.4 MB, free: 2.215 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.85e-05/0.1411, allocations: 135.5 kB / 484.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.1412, allocations: 8 kB / 484.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.556e-06/0.1412, allocations: 3.125 kB / 484.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1412, allocations: 0 / 484.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1412, allocations: 4 kB / 484.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1412, allocations: 0 / 484.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.1413, allocations: 157.6 kB / 484.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1413, allocations: 0 / 484.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1413, allocations: 0 / 484.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1413, allocations: 4 kB / 484.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.1414, allocations: 0 / 484.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1414, allocations: 0 / 484.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1414, allocations: 0 / 484.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.1415, allocations: 94.77 kB / 484.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.1415, allocations: 81.06 kB / 484.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.1415, allocations: 4 kB / 484.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.011e-05/0.1416, allocations: 4.031 kB / 484.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.1416, allocations: 3.984 kB / 484.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.1416, allocations: 0 / 484.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.266e-05/0.1416, allocations: 79.28 kB / 485 MB, free: 1.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1416, allocations: 0 / 485 MB, free: 1.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.1419, allocations: 20 kB / 485 MB, free: 1.523 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 (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.000721/0.1426, allocations: 0.7159 MB / 485.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.1427, allocations: 67.33 kB / 485.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1427, allocations: 0 / 485.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/0.1428, allocations: 59.41 kB / 485.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.1429, allocations: 0 / 485.8 MB, free: 0.6484 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.1433, allocations: 112.4 kB / 485.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.1437, allocations: 0.6772 MB / 486.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.207e-06/0.1437, allocations: 0 / 486.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.211e-05/0.1437, allocations: 11.42 kB / 486.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1437, allocations: 0 / 486.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1917/0.3354, allocations: 1.231 MB / 487.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.3357, allocations: 222.3 kB / 488.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.172, allocations: 3.938 kB / 488.1 MB, free: 14.41 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat does not exist to compare? outputFormat=mat