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.001526/0.001526, allocations: 104.7 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001828/0.001828, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2464/0.2464, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 72.28 kB / 417.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1059, allocations: 62.45 MB / 479.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001735/0.1077, allocations: 0.5333 MB / 480.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005393/0.1082, allocations: 210.1 kB / 480.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.979e-05/0.1083, allocations: 4 kB / 480.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.1083, allocations: 3.938 kB / 480.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.658e-06/0.1083, allocations: 0 / 480.3 MB, free: 4.801 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.0002955/0.1086, allocations: 35.91 kB / 480.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.691e-05/0.1087, allocations: 8 kB / 480.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.1087, allocations: 4 kB / 480.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.458e-05/0.1088, allocations: 0 / 480.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.206e-05/0.1088, allocations: 0 / 480.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.803e-06/0.1088, allocations: 0 / 480.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.1089, allocations: 59.92 kB / 480.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.109, allocations: 3.938 kB / 480.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.717e-05/0.109, allocations: 0 / 480.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.1091, allocations: 39.95 kB / 480.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1091, allocations: 0 / 480.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1091, allocations: 0 / 480.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.1091, allocations: 0 / 480.5 MB, free: 4.652 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.0002997/0.1094, allocations: 361.2 kB / 480.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1095, allocations: 8.031 kB / 480.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.1095, allocations: 30.75 kB / 480.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.165e-05/0.1095, allocations: 0.9375 kB / 480.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.862e-05/0.1096, allocations: 164.4 kB / 481 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1096, allocations: 4.375 kB / 481 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.1096, allocations: 4.359 kB / 481 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.182e-05/0.1097, allocations: 26.27 kB / 481.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.1097, allocations: 3.938 kB / 481.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.1097, allocations: 8 kB / 481.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-06/0.1097, allocations: 0 / 481.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.743e-05/0.1098, allocations: 3.938 kB / 481.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001117/0.1099, allocations: 141.7 kB / 481.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.958e-05/0.1099, allocations: 26.59 kB / 481.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.1099, allocations: 4.859 kB / 481.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.11, allocations: 0 / 481.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.11, allocations: 64.33 kB / 481.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.11, allocations: 0 / 481.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001437/0.1102, allocations: 75.25 kB / 481.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.1102, allocations: 81.11 kB / 481.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.283e-05/0.1103, allocations: 89.86 kB / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.1103, allocations: 25.7 kB / 481.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.53e-05/0.1103, allocations: 84.08 kB / 481.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.1103, allocations: 0 / 481.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.1104, allocations: 17.84 kB / 481.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1105, allocations: 310.8 kB / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.1105, allocations: 0 / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-06/0.1105, allocations: 0 / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.899e-05/0.1105, allocations: 68.25 kB / 482 MB, free: 2.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1105, allocations: 3.938 kB / 482.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.905e-05/0.1106, allocations: 63.34 kB / 482.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1107, allocations: 29.7 kB / 482.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1107, allocations: 12.03 kB / 482.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.1107, allocations: 0 / 482.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.1107, allocations: 0 / 482.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.1107, allocations: 0 / 482.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.222e-05/0.1107, allocations: 0 / 482.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.1107, allocations: 0 / 482.2 MB, free: 2.691 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 7.692e-05/0.1108, allocations: 143.5 kB / 482.3 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-06/0.1108, allocations: 0 / 482.3 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-06/0.1108, allocations: 7.062 kB / 482.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1108, allocations: 4 kB / 482.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1108, allocations: 0 / 482.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.1108, allocations: 0 / 482.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.892e-05/0.1109, allocations: 153.7 kB / 482.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1109, allocations: 0 / 482.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.111, allocations: 0 / 482.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.111, allocations: 0 / 482.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.111, allocations: 3.938 kB / 482.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.111, allocations: 0 / 482.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.111, allocations: 4 kB / 482.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.863e-05/0.1111, allocations: 94.77 kB / 482.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.1111, allocations: 77.39 kB / 482.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.1111, allocations: 7.938 kB / 482.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.156e-06/0.1111, allocations: 0 / 482.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-06/0.1112, allocations: 0 / 482.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.1112, allocations: 0 / 482.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.722e-05/0.1112, allocations: 75.28 kB / 482.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1112, allocations: 0 / 482.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002024/0.1114, allocations: 28.02 kB / 482.7 MB, free: 2 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.0006424/0.1121, allocations: 0.739 MB / 483.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001006/0.1122, allocations: 59.39 kB / 483.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1122, allocations: 4.062 kB / 483.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.887e-05/0.1122, allocations: 59.41 kB / 483.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.1124, allocations: 0 / 483.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003017/0.1127, allocations: 114.6 kB / 483.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.1129, allocations: 0.6768 MB / 484.4 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.933e-06/0.1129, allocations: 0 / 484.4 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.435e-05/0.1129, allocations: 11.38 kB / 484.4 MB, free: 252 kB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1129, allocations: 0 / 484.4 MB, free: 252 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.88/0.993, allocations: 1.293 MB / 485.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002919/0.9933, allocations: 235.4 kB / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.161/3.154, allocations: 0 / 485.9 MB, free: 14.8 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