Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",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.001124/0.001124, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001163/0.001163, allocations: 191.9 kB / 18.56 MB, free: 4.605 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 / 242.3 MB, free: 15.21 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.2137/0.2137, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.19 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, allocations: 60.82 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001629/0.1036, allocations: 490.6 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005667/0.1042, allocations: 245.8 kB / 470.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.228e-05/0.1042, allocations: 4 kB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.315e-05/0.1043, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.688e-06/0.1043, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.1046, allocations: 55.75 kB / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.017e-05/0.1046, allocations: 11.98 kB / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.487e-05/0.1047, allocations: 0 / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.1047, allocations: 4 kB / 470.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.884e-05/0.1047, allocations: 3.938 kB / 470.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.1047, allocations: 3.984 kB / 470.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.1049, allocations: 59.95 kB / 470.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-06/0.1049, allocations: 0 / 470.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.768e-05/0.1049, allocations: 0 / 470.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.105, allocations: 55.94 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.105, allocations: 0 / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1051, allocations: 0 / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1051, allocations: 4 kB / 470.3 MB, free: 13.36 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.0003087/0.1054, allocations: 364.1 kB / 470.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1054, allocations: 12.03 kB / 470.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.978e-05/0.1055, allocations: 34.69 kB / 470.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.168e-05/0.1055, allocations: 0.9375 kB / 470.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.253e-05/0.1056, allocations: 164.4 kB / 470.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.1056, allocations: 384 / 470.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-06/0.1056, allocations: 384 / 470.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.763e-05/0.1057, allocations: 34.25 kB / 470.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1057, allocations: 7.938 kB / 470.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.1057, allocations: 3.938 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.1057, allocations: 0 / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.656e-05/0.1057, allocations: 0 / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.1059, allocations: 145.7 kB / 471 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.856e-05/0.1059, allocations: 18.58 kB / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.1059, allocations: 12.94 kB / 471 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-06/0.106, allocations: 0 / 471 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.106, allocations: 60.27 kB / 471.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.106, allocations: 0 / 471.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001554/0.1062, allocations: 67.28 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.1062, allocations: 81.11 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.302e-05/0.1063, allocations: 93.84 kB / 471.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.1063, allocations: 25.7 kB / 471.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.393e-05/0.1063, allocations: 80.14 kB / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.1063, allocations: 8.125 kB / 471.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.1064, allocations: 9.719 kB / 471.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.1065, allocations: 310.8 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.1065, allocations: 4 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-06/0.1065, allocations: 0 / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.941e-05/0.1065, allocations: 68.2 kB / 471.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1066, allocations: 0 / 471.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.463e-05/0.1066, allocations: 63.45 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.1067, allocations: 33.73 kB / 471.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.1067, allocations: 7.875 kB / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.1067, allocations: 0 / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1067, allocations: 0 / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1067, allocations: 0 / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.573e-05/0.1067, allocations: 4 kB / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.1067, allocations: 0 / 471.9 MB, free: 11.4 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.4e-05/0.1068, allocations: 135.5 kB / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.1068, allocations: 8 kB / 472.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.092e-05/0.1068, allocations: 15.02 kB / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1069, allocations: 0 / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1069, allocations: 0 / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.1069, allocations: 0 / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.117e-05/0.107, allocations: 153.6 kB / 472.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.107, allocations: 0 / 472.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-06/0.107, allocations: 7.984 kB / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.107, allocations: 0 / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.107, allocations: 3.938 kB / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.107, allocations: 3.938 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.107, allocations: 0 / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.134e-05/0.1071, allocations: 94.83 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.178e-05/0.1071, allocations: 81.3 kB / 472.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.1071, allocations: 3.938 kB / 472.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.1072, allocations: 0 / 472.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.255e-05/0.1072, allocations: 4 kB / 472.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1072, allocations: 0 / 472.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.36e-05/0.1072, allocations: 79.31 kB / 472.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1072, allocations: 0 / 472.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1074, allocations: 27.98 kB / 472.5 MB, free: 10.68 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.000712/0.1081, allocations: 0.8116 MB / 473.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.521e-05/0.1082, allocations: 59.41 kB / 473.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1083, allocations: 4.062 kB / 473.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.925e-05/0.1083, allocations: 55.41 kB / 473.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.1084, allocations: 0 / 473.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002702/0.1087, allocations: 122.6 kB / 473.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.1089, allocations: 0.669 MB / 474.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.1089, allocations: 7.875 kB / 474.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.466e-05/0.1089, allocations: 15.42 kB / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1089, allocations: 0 / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.129, allocations: 1.598 MB / 475.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.336/7.465, allocations: 1.031 kB / 475.9 MB, free: 7.344 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_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_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches