Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 109.9 kB / 17.32 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 193.3 kB / 18.25 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2033/0.2033, allocations: 44.18 MB / 336.2 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001399, allocations: 69.17 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1098, allocations: 60.82 MB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001664/0.1115, allocations: 0.541 MB / 469.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1135, allocations: 1.251 MB / 470.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.031e-05/0.1135, allocations: 0 / 470.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.577e-05/0.1136, allocations: 3.938 kB / 470.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.1137, allocations: 8 kB / 470.6 MB, free: 12.84 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001078/0.1148, allocations: 217.3 kB / 470.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.435e-05/0.1149, allocations: 7.938 kB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.59e-05/0.115, allocations: 0 / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.827e-05/0.115, allocations: 4 kB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.149e-05/0.1151, allocations: 19.92 kB / 470.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.445e-06/0.1151, allocations: 0 / 470.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003037/0.1181, allocations: 0.6565 MB / 471.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-06/0.1181, allocations: 0 / 471.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.315e-05/0.1182, allocations: 7.922 kB / 471.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.1184, allocations: 175.7 kB / 471.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1185, allocations: 3.938 kB / 471.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1185, allocations: 0 / 471.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1185, allocations: 4 kB / 471.7 MB, free: 11.88 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.0003969/0.1189, allocations: 381.2 kB / 472.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1189, allocations: 11.97 kB / 472.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.692e-05/0.119, allocations: 30.75 kB / 472.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.119, allocations: 4.922 kB / 472.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.1191, allocations: 164.4 kB / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-06/0.1191, allocations: 384 / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.1191, allocations: 384 / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.534e-05/0.1192, allocations: 37.64 kB / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1192, allocations: 4 kB / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.1192, allocations: 0 / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.1192, allocations: 0 / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.605e-05/0.1193, allocations: 3.984 kB / 472.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001216/0.1194, allocations: 153.7 kB / 472.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.639e-05/0.1194, allocations: 18.52 kB / 472.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.823e-05/0.1195, allocations: 8.953 kB / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.455e-06/0.1195, allocations: 11.88 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.1195, allocations: 60.25 kB / 472.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1195, allocations: 0 / 472.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001502/0.1197, allocations: 71.25 kB / 472.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.1197, allocations: 81.11 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.3e-05/0.1198, allocations: 93.84 kB / 472.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.1198, allocations: 25.7 kB / 472.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.795e-05/0.1198, allocations: 92.39 kB / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.1199, allocations: 0 / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/0.1199, allocations: 9.719 kB / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.12, allocations: 314.8 kB / 473.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-06/0.12, allocations: 0 / 473.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.701e-06/0.12, allocations: 0 / 473.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.023e-05/0.1201, allocations: 64.27 kB / 473.3 MB, free: 10 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1201, allocations: 0 / 473.3 MB, free: 10 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.147e-05/0.1201, allocations: 75.33 kB / 473.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.1202, allocations: 33.7 kB / 473.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.1202, allocations: 0 / 473.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.1202, allocations: 0 / 473.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1202, allocations: 0 / 473.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.1202, allocations: 3.938 kB / 473.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.67e-05/0.1202, allocations: 0 / 473.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.1203, allocations: 0 / 473.4 MB, free: 9.875 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.374e-05/0.1203, allocations: 139.5 kB / 473.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.1204, allocations: 7.969 kB / 473.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.179e-05/0.1204, allocations: 7.078 kB / 473.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1204, allocations: 4 kB / 473.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1204, allocations: 0 / 473.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1204, allocations: 0 / 473.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.627e-05/0.1205, allocations: 149.7 kB / 473.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1205, allocations: 3.938 kB / 473.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-06/0.1205, allocations: 4 kB / 473.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1205, allocations: 0 / 473.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1205, allocations: 3.984 kB / 473.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1205, allocations: 4 kB / 473.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1205, allocations: 0 / 473.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.546e-05/0.1206, allocations: 98.7 kB / 473.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.386e-05/0.1207, allocations: 81.05 kB / 473.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.1207, allocations: 4 kB / 473.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/0.1207, allocations: 4 kB / 473.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.082e-05/0.1207, allocations: 0 / 473.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.1207, allocations: 0 / 473.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.491e-05/0.1208, allocations: 87.3 kB / 474 MB, free: 9.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1208, allocations: 0 / 474 MB, free: 9.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1211, allocations: 63.98 kB / 474.1 MB, free: 9.117 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.0008681/0.1219, allocations: 0.8639 MB / 474.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.291e-05/0.1221, allocations: 67.33 kB / 475 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.1221, allocations: 0 / 475 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.108e-05/0.1221, allocations: 55.41 kB / 475.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.1222, allocations: 0 / 475.1 MB, free: 8.156 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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 4.0.0+maint.om/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.0003751/0.1226, allocations: 150.4 kB / 475.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.1228, allocations: 0.6769 MB / 475.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.616e-06/0.1228, allocations: 0 / 475.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.378e-05/0.1229, allocations: 7.438 kB / 475.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1229, allocations: 0 / 475.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3276/0.4505, allocations: 2.438 MB / 478.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000331/0.4509, allocations: 237.4 kB / 478.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.419/2.87, allocations: 0 / 478.6 MB, free: 4.66 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches