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.001489/0.001489, allocations: 96.06 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.001732/0.001732, allocations: 204.2 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 45.91 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003027, allocations: 8 kB / 418.1 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1311, allocations: 63.46 MB / 481.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006287/0.1318, allocations: 210.9 kB / 481.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1328, allocations: 0.7447 MB / 482.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.029e-05/0.1329, allocations: 0 / 482.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.19e-05/0.1329, allocations: 0 / 482.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.133, allocations: 4 kB / 482.5 MB, free: 4.289 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.0001964/0.1332, allocations: 39.83 kB / 482.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.973e-05/0.1333, allocations: 0 / 482.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.29e-05/0.1333, allocations: 4 kB / 482.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.844e-05/0.1333, allocations: 0 / 482.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.989e-05/0.1334, allocations: 11.97 kB / 482.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.1334, allocations: 0 / 482.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.1336, allocations: 39.97 kB / 482.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.101e-06/0.1336, allocations: 7.938 kB / 482.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.46e-05/0.1336, allocations: 25.7 kB / 482.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.1337, allocations: 39.88 kB / 482.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1337, allocations: 0 / 482.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1337, allocations: 0 / 482.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.875e-06/0.1337, allocations: 0 / 482.6 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.0003189/0.1341, allocations: 345.1 kB / 483 MB, free: 3.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1341, allocations: 8.031 kB / 483 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.1341, allocations: 42.48 kB / 483 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.1342, allocations: 4 kB / 483 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1343, allocations: 167 kB / 483.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.1343, allocations: 0 / 483.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-06/0.1343, allocations: 0 / 483.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.782e-05/0.1344, allocations: 29.7 kB / 483.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.1344, allocations: 0 / 483.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.1344, allocations: 0 / 483.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.1344, allocations: 0 / 483.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.541e-05/0.1345, allocations: 3.984 kB / 483.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001285/0.1346, allocations: 153.6 kB / 483.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.246e-05/0.1346, allocations: 22.52 kB / 483.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.91e-06/0.1346, allocations: 0 / 483.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.1347, allocations: 60.36 kB / 483.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1347, allocations: 0 / 483.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.1349, allocations: 63.39 kB / 483.5 MB, free: 3.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.1349, allocations: 81.05 kB / 483.6 MB, free: 2.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.095e-05/0.135, allocations: 97.98 kB / 483.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.135, allocations: 29.7 kB / 483.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.097e-05/0.1351, allocations: 80.14 kB / 483.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.1351, allocations: 3.906 kB / 483.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.1351, allocations: 0 / 483.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1352, allocations: 314.8 kB / 484.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.223e-06/0.1352, allocations: 3.938 kB / 484.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.1352, allocations: 4 kB / 484.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.699e-05/0.1353, allocations: 33.84 kB / 484.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1353, allocations: 0 / 484.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.753e-05/0.1354, allocations: 63.41 kB / 484.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.1354, allocations: 33.69 kB / 484.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1354, allocations: 4 kB / 484.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1354, allocations: 0 / 484.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.1354, allocations: 0 / 484.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.1355, allocations: 3.984 kB / 484.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.1355, allocations: 4.219 kB / 484.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.1355, allocations: 7.969 kB / 484.3 MB, free: 2.223 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.669e-05/0.1356, allocations: 139.5 kB / 484.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-06/0.1356, allocations: 0 / 484.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.143e-06/0.1356, allocations: 3.125 kB / 484.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1356, allocations: 0 / 484.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1356, allocations: 0 / 484.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.1356, allocations: 7.984 kB / 484.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.1358, allocations: 149.6 kB / 484.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1358, allocations: 3.953 kB / 484.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1358, allocations: 0 / 484.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.1358, allocations: 4 kB / 484.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.1358, allocations: 4 kB / 484.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1358, allocations: 4 kB / 484.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1358, allocations: 0 / 484.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.029e-05/0.1359, allocations: 90.83 kB / 484.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.004e-05/0.1359, allocations: 81.06 kB / 484.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.136, allocations: 0 / 484.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.236e-05/0.136, allocations: 8.016 kB / 484.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.136, allocations: 3.938 kB / 484.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.136, allocations: 4 kB / 484.8 MB, free: 1.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.001e-05/0.136, allocations: 75.28 kB / 484.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.136, allocations: 0 / 484.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.1363, allocations: 16 kB / 484.8 MB, free: 1.535 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.0006367/0.1369, allocations: 0.7216 MB / 485.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.448e-05/0.137, allocations: 59.39 kB / 485.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.137, allocations: 0 / 485.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.495e-05/0.1371, allocations: 59.34 kB / 485.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.871e-05/0.1372, allocations: 0 / 485.7 MB, free: 0.6641 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.0003174/0.1375, allocations: 120.4 kB / 485.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.1378, allocations: 0.6772 MB / 486.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.817e-06/0.1378, allocations: 0 / 486.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.817e-05/0.1378, allocations: 11.44 kB / 486.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1378, allocations: 0 / 486.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1494/0.2873, allocations: 1.229 MB / 487.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/0.2876, allocations: 203.9 kB / 487.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.042, allocations: 3.938 kB / 487.9 MB, free: 14.43 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