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.0008039/0.0008079, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008906/0.0008907, allocations: 201.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2194/0.2194, allocations: 46.18 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 8.375 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1013, allocations: 63.56 MB / 483.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.000592/0.102, allocations: 206.9 kB / 483.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000533/0.1025, allocations: 210 kB / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.112e-05/0.1026, allocations: 0 / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.238e-05/0.1026, allocations: 0 / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.528e-06/0.1026, allocations: 0 / 483.6 MB, free: 3.668 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.0002466/0.1028, allocations: 35.91 kB / 483.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.345e-05/0.1029, allocations: 11.92 kB / 483.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.961e-05/0.1029, allocations: 4 kB / 483.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.815e-05/0.103, allocations: 0 / 483.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.205e-05/0.103, allocations: 0 / 483.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.103, allocations: 0 / 483.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.1031, allocations: 55.95 kB / 483.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.712e-06/0.1031, allocations: 0 / 483.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.1032, allocations: 25.7 kB / 483.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.1033, allocations: 43.92 kB / 483.7 MB, free: 3.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1033, allocations: 4 kB / 483.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.1033, allocations: 4 kB / 483.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1033, allocations: 0 / 483.8 MB, free: 3.48 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.0003084/0.1036, allocations: 353.2 kB / 484.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1037, allocations: 8.875 kB / 484.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.1037, allocations: 34.75 kB / 484.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.042e-05/0.1038, allocations: 0.9375 kB / 484.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.097e-05/0.1038, allocations: 160.4 kB / 484.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-06/0.1039, allocations: 384 / 484.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.746e-06/0.1039, allocations: 384 / 484.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001/0.104, allocations: 30.27 kB / 484.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.104, allocations: 7.938 kB / 484.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.104, allocations: 3.984 kB / 484.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.104, allocations: 3.984 kB / 484.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.091e-05/0.104, allocations: 4 kB / 484.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.1042, allocations: 149.6 kB / 484.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.547e-05/0.1042, allocations: 14.58 kB / 484.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.557e-05/0.1043, allocations: 12.89 kB / 484.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.1043, allocations: 0 / 484.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.1043, allocations: 64.27 kB / 484.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1043, allocations: 0 / 484.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.1045, allocations: 71.27 kB / 484.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.1046, allocations: 77.11 kB / 484.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.105e-05/0.1046, allocations: 89.86 kB / 484.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.1046, allocations: 25.7 kB / 484.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.502e-05/0.1047, allocations: 80.14 kB / 484.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.1047, allocations: 4.125 kB / 484.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-05/0.1047, allocations: 13.72 kB / 484.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1049, allocations: 318.8 kB / 485.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-06/0.1049, allocations: 0 / 485.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.518e-06/0.1049, allocations: 0 / 485.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.057e-05/0.1049, allocations: 60.27 kB / 485.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.105, allocations: 0 / 485.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.047e-05/0.105, allocations: 63.34 kB / 485.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.1051, allocations: 41.78 kB / 485.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1051, allocations: 3.938 kB / 485.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1051, allocations: 7.938 kB / 485.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1051, allocations: 0 / 485.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1051, allocations: 0 / 485.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.1052, allocations: 0 / 485.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.1052, allocations: 0 / 485.4 MB, free: 1.527 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 9.159e-05/0.1053, allocations: 135.5 kB / 485.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.1053, allocations: 0 / 485.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.151e-05/0.1053, allocations: 11.06 kB / 485.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1053, allocations: 0 / 485.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.1053, allocations: 7.984 kB / 485.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1053, allocations: 0 / 485.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.234e-05/0.1054, allocations: 145.7 kB / 485.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1054, allocations: 0 / 485.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1054, allocations: 0 / 485.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1054, allocations: 0 / 485.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.1054, allocations: 3.938 kB / 485.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1054, allocations: 0 / 485.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1054, allocations: 4 kB / 485.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.1056, allocations: 94.77 kB / 485.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.809e-05/0.1056, allocations: 77.39 kB / 485.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.1056, allocations: 7.938 kB / 485.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.175e-05/0.1056, allocations: 3.984 kB / 485.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.291e-05/0.1056, allocations: 4 kB / 485.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.1057, allocations: 3.938 kB / 485.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.582e-05/0.1057, allocations: 75.28 kB / 486 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1057, allocations: 4.031 kB / 486 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1059, allocations: 16 kB / 486 MB, free: 0.8398 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.0006445/0.1066, allocations: 0.7302 MB / 486.7 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.026e-05/0.1067, allocations: 67.34 kB / 486.8 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1067, allocations: 7.875 kB / 486.8 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.904e-05/0.1068, allocations: 55.41 kB / 486.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.1069, allocations: 5.719 kB / 486.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002599/0.1071, allocations: 112.4 kB / 487 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.1074, allocations: 0.6692 MB / 487.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.813e-06/0.1074, allocations: 7.984 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.043e-05/0.1074, allocations: 7.438 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1074, allocations: 0 / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08969/0.1971, allocations: 1.159 MB / 488.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002365/0.1974, allocations: 235.3 kB / 489.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/1.926, allocations: 0 / 489.1 MB, free: 13.78 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