Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009796/0.0009796, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2202/0.2202, allocations: 45.91 MB / 344 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000261/0.0002611, allocations: 8 kB / 418 MB, free: 20.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 63.47 MB / 481.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005479/0.1313, allocations: 195 kB / 481.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004704/0.1318, allocations: 202.1 kB / 481.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.679e-05/0.1318, allocations: 0 / 481.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.336e-06/0.1318, allocations: 0 / 481.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.1318, allocations: 0 / 481.9 MB, free: 4.926 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.1321, allocations: 39.83 kB / 481.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.728e-05/0.1321, allocations: 8 kB / 482 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.814e-05/0.1321, allocations: 0 / 482 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.591e-05/0.1322, allocations: 7.984 kB / 482 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.54e-05/0.1322, allocations: 0 / 482 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.422e-06/0.1322, allocations: 0 / 482 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.777e-05/0.1323, allocations: 35.97 kB / 482 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.801e-06/0.1323, allocations: 0 / 482 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.1323, allocations: 25.7 kB / 482 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.952e-05/0.1324, allocations: 31.89 kB / 482.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.1324, allocations: 3.938 kB / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1324, allocations: 0 / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1325, allocations: 0 / 482.1 MB, free: 4.77 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.0003853/0.1328, allocations: 357.1 kB / 482.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.1329, allocations: 8.031 kB / 482.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.732e-05/0.1329, allocations: 30.56 kB / 482.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.133, allocations: 4 kB / 482.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.1331, allocations: 167 kB / 482.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-06/0.1331, allocations: 0 / 482.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-06/0.1331, allocations: 0 / 482.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.573e-05/0.1332, allocations: 29.7 kB / 482.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.1332, allocations: 0 / 482.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-06/0.1332, allocations: 0 / 482.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1332, allocations: 4 kB / 482.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.734e-05/0.1332, allocations: 3.938 kB / 482.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001709/0.1334, allocations: 157.7 kB / 482.8 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.513e-05/0.1335, allocations: 14.58 kB / 482.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-06/0.1335, allocations: 0 / 482.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.1335, allocations: 56.27 kB / 482.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.123e-06/0.1335, allocations: 3.938 kB / 482.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1337, allocations: 71.41 kB / 482.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.1338, allocations: 85.09 kB / 483 MB, free: 3.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.991e-05/0.1338, allocations: 89.86 kB / 483.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.1338, allocations: 25.7 kB / 483.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.1339, allocations: 80.14 kB / 483.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.1339, allocations: 0 / 483.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-06/0.1339, allocations: 0 / 483.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.134, allocations: 310.8 kB / 483.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.837e-06/0.1341, allocations: 12.06 kB / 483.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.1341, allocations: 0 / 483.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.523e-05/0.1341, allocations: 25.7 kB / 483.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1341, allocations: 3.953 kB / 483.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.159e-05/0.1342, allocations: 67.39 kB / 483.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.1342, allocations: 29.7 kB / 483.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1342, allocations: 0 / 483.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.1343, allocations: 7.938 kB / 483.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1343, allocations: 0 / 483.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1343, allocations: 4.094 kB / 483.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.702e-05/0.1343, allocations: 4 kB / 483.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.1343, allocations: 0 / 483.7 MB, free: 2.887 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.103e-05/0.1344, allocations: 135.5 kB / 483.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.099e-05/0.1344, allocations: 7.938 kB / 483.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-06/0.1344, allocations: 3.125 kB / 483.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.1345, allocations: 3.984 kB / 483.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1345, allocations: 0 / 483.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.1345, allocations: 0 / 483.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.941e-05/0.1346, allocations: 153.7 kB / 484 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.1346, allocations: 0 / 484 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-06/0.1346, allocations: 3.953 kB / 484 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1346, allocations: 3.984 kB / 484 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.1346, allocations: 0 / 484 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1346, allocations: 0 / 484 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1346, allocations: 4 kB / 484 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.956e-05/0.1347, allocations: 86.78 kB / 484.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.1348, allocations: 89.31 kB / 484.2 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.1348, allocations: 7.953 kB / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.1348, allocations: 0 / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.557e-05/0.1348, allocations: 0 / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.1348, allocations: 0 / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.1e-05/0.1349, allocations: 75.28 kB / 484.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1349, allocations: 0 / 484.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002089/0.1351, allocations: 15.94 kB / 484.3 MB, free: 2.203 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.0007358/0.1358, allocations: 0.7401 MB / 485 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.151e-05/0.1359, allocations: 59.34 kB / 485.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1359, allocations: 0 / 485.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.896e-05/0.136, allocations: 59.39 kB / 485.1 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.278e-05/0.1361, allocations: 14.67 kB / 485.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/0.1363, allocations: 108.4 kB / 485.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.1367, allocations: 0.677 MB / 485.9 MB, free: 468 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.1367, allocations: 0 / 485.9 MB, free: 468 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.1367, allocations: 7.438 kB / 485.9 MB, free: 460 kB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1367, allocations: 0 / 485.9 MB, free: 460 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01216/0.1489, allocations: 1.14 MB / 487.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.1491, allocations: 207.6 kB / 487.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/1.957, allocations: 4 kB / 487.3 MB, free: 15.17 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat