Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000756/0.000756, allocations: 97.52 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008621/0.0008622, allocations: 205.7 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, 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.1858/0.1858, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002573/0.0002572, allocations: 8 kB / 419.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1199, allocations: 63.56 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.000762/0.1207, allocations: 214.9 kB / 483.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.123, allocations: 1.267 MB / 484.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.339e-05/0.123, allocations: 0 / 484.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.487e-05/0.123, allocations: 0 / 484.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.1232, allocations: 11.88 kB / 484.7 MB, free: 2.59 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009908/0.1242, allocations: 189.8 kB / 484.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.256e-05/0.1242, allocations: 4 kB / 484.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.592e-05/0.1243, allocations: 0 / 484.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.151e-05/0.1243, allocations: 4 kB / 484.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.463e-05/0.1244, allocations: 7.984 kB / 484.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.735e-06/0.1244, allocations: 4 kB / 484.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003068/0.1275, allocations: 0.6156 MB / 485.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.058e-05/0.1275, allocations: 3.938 kB / 485.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.1275, allocations: 33.64 kB / 485.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.1279, allocations: 175.7 kB / 485.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1279, allocations: 4 kB / 485.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1279, allocations: 0 / 485.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1279, allocations: 0 / 485.7 MB, free: 1.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.0004078/0.1283, allocations: 381.2 kB / 486.1 MB, free: 1.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1284, allocations: 12.88 kB / 486.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.06e-05/0.1284, allocations: 30.75 kB / 486.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.1284, allocations: 0.9375 kB / 486.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.1285, allocations: 164.3 kB / 486.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.1285, allocations: 8.375 kB / 486.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.1286, allocations: 384 / 486.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.733e-05/0.1287, allocations: 33.62 kB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.1287, allocations: 4 kB / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.1287, allocations: 0 / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1287, allocations: 0 / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.429e-05/0.1287, allocations: 4 kB / 486.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000118/0.1288, allocations: 149.7 kB / 486.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.78e-05/0.1289, allocations: 22.52 kB / 486.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.084e-05/0.1289, allocations: 4.922 kB / 486.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.1289, allocations: 15.81 kB / 486.5 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.129, allocations: 60.27 kB / 486.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.129, allocations: 0 / 486.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.1291, allocations: 67.3 kB / 486.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.1292, allocations: 77.11 kB / 486.7 MB, free: 436 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.337e-05/0.1293, allocations: 102 kB / 486.8 MB, free: 324 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.1293, allocations: 25.7 kB / 486.8 MB, free: 292 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.1293, allocations: 80.14 kB / 486.9 MB, free: 208 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.1293, allocations: 7.938 kB / 486.9 MB, free: 200 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.089e-05/0.1294, allocations: 9.719 kB / 486.9 MB, free: 184 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1295, allocations: 314.8 kB / 487.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-06/0.1295, allocations: 0 / 487.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-06/0.1295, allocations: 4 kB / 487.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.355e-05/0.1295, allocations: 68.45 kB / 487.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1296, allocations: 0 / 487.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.71e-05/0.1296, allocations: 63.34 kB / 487.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.1297, allocations: 33.69 kB / 487.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1297, allocations: 3.984 kB / 487.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1297, allocations: 0 / 487.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1297, allocations: 0 / 487.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1297, allocations: 3.938 kB / 487.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.928e-05/0.1297, allocations: 4 kB / 487.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-06/0.1298, allocations: 4.031 kB / 487.4 MB, free: 15.65 MB / 366.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.447e-05/0.1298, allocations: 131.5 kB / 487.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.1299, allocations: 7.938 kB / 487.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.942e-05/0.1299, allocations: 11.11 kB / 487.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1299, allocations: 0 / 487.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1299, allocations: 0 / 487.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1299, allocations: 3.984 kB / 487.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.563e-05/0.13, allocations: 149.7 kB / 487.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.13, allocations: 3.938 kB / 487.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.13, allocations: 4 kB / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.13, allocations: 0 / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.13, allocations: 0 / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.13, allocations: 3.984 kB / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.13, allocations: 0 / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.595e-05/0.1301, allocations: 94.78 kB / 487.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.1302, allocations: 85.03 kB / 487.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.1302, allocations: 0 / 487.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.325e-05/0.1302, allocations: 4.031 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.014e-05/0.1302, allocations: 3.938 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.1302, allocations: 4 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.578e-05/0.1303, allocations: 83.22 kB / 488 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1303, allocations: 0 / 488 MB, free: 14.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.1306, allocations: 59.98 kB / 488 MB, free: 14.91 MB / 366.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.0008879/0.1315, allocations: 0.8494 MB / 488.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.963e-05/0.1316, allocations: 59.41 kB / 489 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1316, allocations: 0 / 489 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.93e-05/0.1316, allocations: 59.34 kB / 489 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1317, allocations: 11 kB / 489 MB, free: 13.93 MB / 366.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data") at compile-time; copying all loaded packages into the FMU Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003641/0.1321, allocations: 148.2 kB / 489.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.1323, allocations: 0.677 MB / 489.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.084e-05/0.1323, allocations: 0 / 489.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.425e-05/0.1324, allocations: 7.438 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1324, allocations: 0 / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8887/1.021, allocations: 2.303 MB / 492.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/1.021, allocations: 230.5 kB / 492.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.918, allocations: 0 / 492.4 MB, free: 10.58 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches