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.001095/0.001095, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.001411, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2369/0.2369, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 76.34 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1637, allocations: 62.44 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001905/0.1656, allocations: 483.7 kB / 480.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005627/0.1662, allocations: 210.1 kB / 480.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.41e-05/0.1662, allocations: 0 / 480.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.1663, allocations: 0 / 480.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.164e-06/0.1663, allocations: 0 / 480.8 MB, free: 4.523 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.0002915/0.1666, allocations: 55.75 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.095e-05/0.1666, allocations: 0 / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.568e-05/0.1667, allocations: 4 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.505e-05/0.1667, allocations: 0 / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.037e-05/0.1667, allocations: 0 / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.1667, allocations: 4 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1669, allocations: 55.95 kB / 480.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.1669, allocations: 0 / 480.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.119e-05/0.1669, allocations: 3.984 kB / 480.9 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.167, allocations: 43.88 kB / 481 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.167, allocations: 4 kB / 481 MB, free: 4.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.167, allocations: 0 / 481 MB, free: 4.355 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.1671, allocations: 0 / 481 MB, free: 4.355 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.0003864/0.1674, allocations: 353.2 kB / 481.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1675, allocations: 12.03 kB / 481.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.176e-05/0.1675, allocations: 38.69 kB / 481.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.632e-05/0.1676, allocations: 0.9375 kB / 481.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.1677, allocations: 160.4 kB / 481.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.1677, allocations: 384 / 481.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-06/0.1677, allocations: 384 / 481.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.028e-05/0.1678, allocations: 38.25 kB / 481.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.1678, allocations: 3.938 kB / 481.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.1678, allocations: 0 / 481.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1678, allocations: 0 / 481.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.074e-05/0.1679, allocations: 4 kB / 481.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001365/0.168, allocations: 145.7 kB / 481.7 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.149e-05/0.168, allocations: 18.52 kB / 481.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.339e-05/0.1681, allocations: 8.953 kB / 481.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.896e-06/0.1681, allocations: 0 / 481.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/0.1681, allocations: 64.25 kB / 481.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.1681, allocations: 0 / 481.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001662/0.1683, allocations: 67.34 kB / 481.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.1684, allocations: 81.05 kB / 481.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.107e-05/0.1684, allocations: 89.86 kB / 482 MB, free: 3.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1684, allocations: 29.7 kB / 482.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.66e-05/0.1685, allocations: 80.14 kB / 482.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.1685, allocations: 3.984 kB / 482.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.1685, allocations: 13.72 kB / 482.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1686, allocations: 315 kB / 482.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.1687, allocations: 4 kB / 482.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.569e-06/0.1687, allocations: 0 / 482.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.569e-05/0.1687, allocations: 60.27 kB / 482.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1687, allocations: 0 / 482.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.761e-05/0.1688, allocations: 67.39 kB / 482.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.1688, allocations: 40.08 kB / 482.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1689, allocations: 3.938 kB / 482.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1689, allocations: 3.984 kB / 482.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.1689, allocations: 4.094 kB / 482.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.1689, allocations: 0 / 482.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.648e-05/0.1689, allocations: 4 kB / 482.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.1689, allocations: 0 / 482.6 MB, free: 2.395 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 8.489e-05/0.169, allocations: 135.5 kB / 482.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/0.169, allocations: 7.984 kB / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.568e-06/0.169, allocations: 7.062 kB / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1691, allocations: 0 / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1691, allocations: 0 / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1691, allocations: 4 kB / 482.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.913e-05/0.1692, allocations: 145.7 kB / 482.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1692, allocations: 4 kB / 482.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1692, allocations: 0 / 482.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1692, allocations: 3.984 kB / 482.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.1692, allocations: 7.938 kB / 483 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1692, allocations: 0 / 483 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1692, allocations: 0 / 483 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.49e-05/0.1693, allocations: 94.78 kB / 483 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.1694, allocations: 81.38 kB / 483.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.1694, allocations: 3.938 kB / 483.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-06/0.1694, allocations: 4 kB / 483.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.359e-05/0.1694, allocations: 3.984 kB / 483.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.1694, allocations: 0 / 483.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.083e-05/0.1695, allocations: 75.28 kB / 483.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1695, allocations: 0 / 483.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001998/0.1697, allocations: 12 kB / 483.2 MB, free: 1.711 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.0007399/0.1704, allocations: 0.7394 MB / 484 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.1706, allocations: 63.34 kB / 484 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1706, allocations: 0 / 484 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.934e-05/0.1706, allocations: 59.45 kB / 484.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.1707, allocations: 4.062 kB / 484.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003103/0.1711, allocations: 118.6 kB / 484.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.1714, allocations: 0.6729 MB / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.1714, allocations: 0 / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.698e-05/0.1714, allocations: 7.438 kB / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1714, allocations: 0 / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.1906, allocations: 1.362 MB / 486.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/7.93, allocations: 14 kB / 486.3 MB, free: 14.63 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches