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.001153/0.001153, allocations: 104.1 kB / 17.63 MB, free: 5.504 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.001093/0.001093, allocations: 192 kB / 18.56 MB, free: 4.578 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.328/1.328, allocations: 222.9 MB / 242.3 MB, free: 15.23 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.2046/0.2046, allocations: 44.17 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 59.91 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1075, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001813/0.1094, allocations: 487.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.1113, allocations: 1.259 MB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.3e-05/0.1113, allocations: 4 kB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.194e-05/0.1114, allocations: 7.938 kB / 471.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1115, allocations: 8 kB / 471.1 MB, free: 12.5 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.0011/0.1127, allocations: 242 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.301e-05/0.1127, allocations: 11.83 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.932e-05/0.1128, allocations: 3.984 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.885e-05/0.1128, allocations: 4 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.1129, allocations: 11.92 kB / 471.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.375e-06/0.1129, allocations: 0 / 471.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003098/0.116, allocations: 0.6606 MB / 472 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-06/0.116, allocations: 0 / 472 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.1161, allocations: 3.938 kB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.1164, allocations: 183.7 kB / 472.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1164, allocations: 4 kB / 472.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1164, allocations: 7.938 kB / 472.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.1164, allocations: 0 / 472.2 MB, free: 11.51 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.0003855/0.1168, allocations: 381.2 kB / 472.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1168, allocations: 8.031 kB / 472.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.59e-05/0.1169, allocations: 34.75 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.1169, allocations: 0.9375 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.117, allocations: 168.4 kB / 472.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.926e-06/0.117, allocations: 384 / 472.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.1171, allocations: 384 / 472.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.295e-05/0.1171, allocations: 37.64 kB / 472.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.1172, allocations: 0 / 472.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.1172, allocations: 0 / 472.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1172, allocations: 0 / 472.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.862e-05/0.1172, allocations: 7.938 kB / 472.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.1173, allocations: 149.6 kB / 473 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.406e-05/0.1174, allocations: 22.61 kB / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.401e-05/0.1174, allocations: 4.859 kB / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.332e-06/0.1174, allocations: 7.938 kB / 473 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.1175, allocations: 60.27 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.1175, allocations: 4 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001669/0.1176, allocations: 67.33 kB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.1177, allocations: 81.11 kB / 473.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.321e-05/0.1178, allocations: 93.86 kB / 473.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.1178, allocations: 25.95 kB / 473.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.1178, allocations: 84.14 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.1179, allocations: 0 / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.1179, allocations: 17.7 kB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.118, allocations: 314.8 kB / 473.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.118, allocations: 0 / 473.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.506e-06/0.118, allocations: 7.938 kB / 473.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.59e-05/0.1181, allocations: 60.27 kB / 473.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1181, allocations: 8 kB / 473.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.324e-05/0.1182, allocations: 71.33 kB / 473.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.1182, allocations: 33.7 kB / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.1182, allocations: 0 / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1182, allocations: 0 / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1183, allocations: 0 / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.1183, allocations: 0 / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.92e-05/0.1183, allocations: 4 kB / 473.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1183, allocations: 0 / 473.9 MB, free: 9.512 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.075e-05/0.1184, allocations: 135.6 kB / 474.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.1184, allocations: 7.938 kB / 474.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.548e-05/0.1184, allocations: 11.06 kB / 474.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.1184, allocations: 0 / 474.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1184, allocations: 0 / 474.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1185, allocations: 0 / 474.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.555e-05/0.1186, allocations: 145.7 kB / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.1186, allocations: 3.938 kB / 474.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-06/0.1186, allocations: 3.984 kB / 474.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1186, allocations: 0 / 474.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.1186, allocations: 4 kB / 474.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1186, allocations: 0 / 474.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.1186, allocations: 3.938 kB / 474.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.1187, allocations: 102.9 kB / 474.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.1188, allocations: 84.98 kB / 474.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1188, allocations: 0 / 474.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.344e-05/0.1188, allocations: 3.984 kB / 474.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.1188, allocations: 0 / 474.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.1188, allocations: 8.031 kB / 474.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.1189, allocations: 75.28 kB / 474.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1189, allocations: 0 / 474.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.1192, allocations: 59.98 kB / 474.6 MB, free: 8.766 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.0008934/0.1201, allocations: 0.8787 MB / 475.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.439e-05/0.1202, allocations: 59.41 kB / 475.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1202, allocations: 0 / 475.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.194e-05/0.1202, allocations: 59.39 kB / 475.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.1204, allocations: 4 kB / 475.6 MB, free: 7.789 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.000361/0.1208, allocations: 150.6 kB / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.121, allocations: 0.6768 MB / 476.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.127e-06/0.121, allocations: 0 / 476.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/0.121, allocations: 15.38 kB / 476.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.121, allocations: 0 / 476.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1207/0.2417, allocations: 2.495 MB / 478.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/7.98, allocations: 8.047 kB / 478.9 MB, free: 4.438 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.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_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches