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.00176/0.00176, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002065/0.002065, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.584/1.584, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 46.1 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 88.39 kB / 416.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1154, allocations: 62.43 MB / 479.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001991/0.1174, allocations: 0.5488 MB / 479.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005825/0.118, allocations: 210 kB / 480.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.213e-05/0.118, allocations: 0 / 480.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.1181, allocations: 0 / 480.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.085e-06/0.1181, allocations: 0 / 480.1 MB, free: 4.906 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.0002857/0.1184, allocations: 47.83 kB / 480.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.631e-05/0.1184, allocations: 0 / 480.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.1185, allocations: 0 / 480.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.865e-05/0.1185, allocations: 4 kB / 480.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.335e-05/0.1185, allocations: 4 kB / 480.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.1186, allocations: 0 / 480.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1187, allocations: 51.95 kB / 480.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-06/0.1187, allocations: 0 / 480.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.24e-05/0.1187, allocations: 4 kB / 480.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.1189, allocations: 43.92 kB / 480.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1189, allocations: 0 / 480.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1189, allocations: 0 / 480.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1189, allocations: 0 / 480.3 MB, free: 4.754 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.0003276/0.1192, allocations: 353.2 kB / 480.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1193, allocations: 12.88 kB / 480.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.1193, allocations: 34.69 kB / 480.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.543e-05/0.1193, allocations: 0.9375 kB / 480.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.479e-05/0.1194, allocations: 164.4 kB / 480.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-06/0.1195, allocations: 384 / 480.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.583e-06/0.1195, allocations: 384 / 480.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.071e-05/0.1196, allocations: 30.27 kB / 480.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.1196, allocations: 7.875 kB / 480.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.1196, allocations: 0 / 480.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.1196, allocations: 0 / 480.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.892e-05/0.1196, allocations: 11.98 kB / 480.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.1198, allocations: 145.7 kB / 481 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.1198, allocations: 18.52 kB / 481 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.1198, allocations: 4.859 kB / 481 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-06/0.1198, allocations: 0 / 481 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.1199, allocations: 64.33 kB / 481.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1199, allocations: 0 / 481.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001696/0.1201, allocations: 75.27 kB / 481.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.1201, allocations: 77.11 kB / 481.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.486e-05/0.1202, allocations: 89.86 kB / 481.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.1202, allocations: 25.7 kB / 481.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.347e-05/0.1202, allocations: 80.14 kB / 481.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.1202, allocations: 0 / 481.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.1203, allocations: 17.72 kB / 481.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1204, allocations: 319 kB / 481.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.819e-06/0.1204, allocations: 0 / 481.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.308e-06/0.1204, allocations: 4 kB / 481.8 MB, free: 3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.283e-05/0.1205, allocations: 56.27 kB / 481.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1205, allocations: 0 / 481.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.728e-05/0.1206, allocations: 71.33 kB / 481.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.1206, allocations: 37.64 kB / 481.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1206, allocations: 3.938 kB / 481.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1206, allocations: 0 / 481.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1206, allocations: 4.094 kB / 481.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1206, allocations: 0 / 481.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.1207, allocations: 0 / 481.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.1207, allocations: 0 / 481.9 MB, free: 2.797 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.511e-05/0.1208, allocations: 135.5 kB / 482.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-06/0.1208, allocations: 0 / 482.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.366e-05/0.1208, allocations: 11.05 kB / 482.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1208, allocations: 0 / 482.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1208, allocations: 4 kB / 482.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1208, allocations: 4 kB / 482.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.441e-05/0.1209, allocations: 141.7 kB / 482.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1209, allocations: 0 / 482.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.703e-06/0.1209, allocations: 4 kB / 482.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1209, allocations: 0 / 482.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.1209, allocations: 7.938 kB / 482.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.121, allocations: 0 / 482.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.121, allocations: 11.91 kB / 482.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.574e-05/0.1211, allocations: 90.78 kB / 482.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.1211, allocations: 85.39 kB / 482.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.1211, allocations: 7.922 kB / 482.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.004e-05/0.1212, allocations: 0 / 482.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.305e-05/0.1212, allocations: 0 / 482.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.1212, allocations: 4 kB / 482.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.398e-05/0.1212, allocations: 75.28 kB / 482.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1212, allocations: 0 / 482.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002413/0.1215, allocations: 16 kB / 482.5 MB, free: 2.105 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.0006594/0.1221, allocations: 0.7403 MB / 483.3 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.831e-05/0.1222, allocations: 59.34 kB / 483.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1222, allocations: 0 / 483.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.447e-05/0.1223, allocations: 59.47 kB / 483.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001435/0.1224, allocations: 7.984 kB / 483.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002952/0.1227, allocations: 108.4 kB / 483.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.123, allocations: 0.6731 MB / 484.2 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.721e-06/0.123, allocations: 0 / 484.2 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.044e-05/0.123, allocations: 7.438 kB / 484.2 MB, free: 364 kB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.123, allocations: 0 / 484.2 MB, free: 364 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01072/0.1337, allocations: 1.253 MB / 485.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.1339, allocations: 228.2 kB / 485.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/1.861, allocations: 3.938 kB / 485.7 MB, free: 14.92 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