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.001193/0.001197, 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.001179/0.001179, 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.344/1.344, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2087/0.2087, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 80.11 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 62.45 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002003/0.1082, allocations: 483.8 kB / 480.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.1101, allocations: 1.267 MB / 481.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.171e-05/0.1101, allocations: 3.938 kB / 481.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.1101, allocations: 0 / 481.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.1103, allocations: 11.94 kB / 481.9 MB, free: 3.449 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.001044/0.1114, allocations: 248.5 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.691e-05/0.1114, allocations: 4 kB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.425e-05/0.1114, allocations: 0 / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.898e-05/0.1115, allocations: 3.984 kB / 482.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.166e-05/0.1116, allocations: 15.98 kB / 482.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.1116, allocations: 4 kB / 482.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.1146, allocations: 0.6561 MB / 482.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.834e-06/0.1146, allocations: 0 / 482.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.1146, allocations: 7.938 kB / 482.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.1149, allocations: 183.7 kB / 483 MB, free: 2.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1149, allocations: 0 / 483 MB, free: 2.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1149, allocations: 0 / 483 MB, free: 2.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1149, allocations: 0 / 483 MB, free: 2.461 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.0003713/0.1153, allocations: 381.2 kB / 483.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1153, allocations: 12.03 kB / 483.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.748e-05/0.1154, allocations: 34.69 kB / 483.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.319e-05/0.1154, allocations: 0.9375 kB / 483.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.1155, allocations: 168.3 kB / 483.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1155, allocations: 4.375 kB / 483.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.123e-06/0.1156, allocations: 384 / 483.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.796e-05/0.1156, allocations: 37.62 kB / 483.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.1156, allocations: 0 / 483.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1157, allocations: 0 / 483.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1157, allocations: 3.984 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.611e-05/0.1157, allocations: 0 / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001269/0.1158, allocations: 153.7 kB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.908e-05/0.1159, allocations: 26.45 kB / 483.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.604e-05/0.1159, allocations: 8.922 kB / 483.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.922e-06/0.1159, allocations: 3.938 kB / 483.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.1159, allocations: 60.27 kB / 483.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.116, allocations: 0 / 483.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.1161, allocations: 67.3 kB / 483.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.1162, allocations: 85.05 kB / 484 MB, free: 1.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.437e-05/0.1162, allocations: 93.98 kB / 484.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.1163, allocations: 29.7 kB / 484.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.881e-05/0.1163, allocations: 84.14 kB / 484.2 MB, free: 1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.1163, allocations: 0 / 484.2 MB, free: 1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.1164, allocations: 9.719 kB / 484.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.602e-05/0.1165, allocations: 318.8 kB / 484.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.1165, allocations: 0 / 484.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.052e-06/0.1165, allocations: 128 / 484.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.502e-05/0.1165, allocations: 68.33 kB / 484.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1165, allocations: 0 / 484.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.353e-05/0.1166, allocations: 67.28 kB / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.1167, allocations: 37.69 kB / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1167, allocations: 0 / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.1167, allocations: 0 / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.1167, allocations: 0 / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1167, allocations: 0 / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.1167, allocations: 0 / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.1167, allocations: 4.031 kB / 484.7 MB, free: 468 kB / 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.172e-05/0.1168, allocations: 135.5 kB / 484.8 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.1168, allocations: 3.938 kB / 484.8 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.016e-05/0.1168, allocations: 7.125 kB / 484.9 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1169, allocations: 7.984 kB / 484.9 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.1169, allocations: 4 kB / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.1169, allocations: 0 / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.602e-05/0.117, allocations: 141.7 kB / 485 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.117, allocations: 3.938 kB / 485 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.117, allocations: 7.938 kB / 485 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.117, allocations: 4 kB / 485 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.117, allocations: 3.984 kB / 485 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.117, allocations: 3.938 kB / 485 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.117, allocations: 0 / 485 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.1171, allocations: 94.86 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.919e-05/0.1172, allocations: 84.98 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1172, allocations: 4.031 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.194e-05/0.1172, allocations: 4 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-06/0.1172, allocations: 0 / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1172, allocations: 0 / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.444e-05/0.1173, allocations: 83.28 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1173, allocations: 0 / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.1176, allocations: 59.98 kB / 485.4 MB, free: 15.71 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.0008184/0.1184, allocations: 0.8562 MB / 486.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.901e-05/0.1185, allocations: 63.28 kB / 486.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1185, allocations: 0 / 486.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/0.1185, allocations: 59.39 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.1187, allocations: 8.125 kB / 486.3 MB, free: 14.73 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.0003522/0.119, allocations: 146.4 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.1192, allocations: 0.6729 MB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.919e-06/0.1193, allocations: 4 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.098e-05/0.1193, allocations: 7.438 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1193, allocations: 0 / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1812/0.3005, allocations: 2.489 MB / 489.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.697/7.998, allocations: 20.7 kB / 489.7 MB, free: 11.38 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv","/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