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.001076/0.001076, 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.001065/0.001065, 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.307/1.307, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.2032/0.2032, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001242, allocations: 67.7 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09799, allocations: 60.82 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001662/0.09969, allocations: 483.7 kB / 469.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005713/0.1003, allocations: 253.7 kB / 470.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.019e-05/0.1003, allocations: 0 / 470.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.1e-05/0.1003, allocations: 0 / 470.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.208e-06/0.1004, allocations: 0 / 470.1 MB, free: 13.58 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.0003459/0.1007, allocations: 55.77 kB / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.056e-05/0.1008, allocations: 0 / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.1008, allocations: 4 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.1008, allocations: 3.984 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.341e-05/0.1009, allocations: 3.938 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.1009, allocations: 4 kB / 470.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.1011, allocations: 59.95 kB / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-06/0.1011, allocations: 0 / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.1011, allocations: 8 kB / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.1012, allocations: 51.92 kB / 470.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1013, allocations: 3.938 kB / 470.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1013, allocations: 0 / 470.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1013, allocations: 0 / 470.3 MB, free: 13.39 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.0003455/0.1016, allocations: 364.1 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1017, allocations: 12.03 kB / 470.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.703e-05/0.1017, allocations: 34.75 kB / 470.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.443e-05/0.1017, allocations: 0.9375 kB / 470.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.808e-05/0.1018, allocations: 164.4 kB / 470.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.1018, allocations: 384 / 470.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1019, allocations: 4.375 kB / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.193e-05/0.102, allocations: 30.2 kB / 470.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.102, allocations: 3.938 kB / 470.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.102, allocations: 0 / 470.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.102, allocations: 0 / 470.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.062e-05/0.102, allocations: 7.984 kB / 470.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001285/0.1021, allocations: 153.7 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.637e-05/0.1022, allocations: 18.61 kB / 471 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.604e-05/0.1022, allocations: 4.859 kB / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.1022, allocations: 0 / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.1023, allocations: 60.2 kB / 471.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1023, allocations: 0 / 471.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001647/0.1025, allocations: 75.39 kB / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.1025, allocations: 77.11 kB / 471.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.151e-05/0.1026, allocations: 93.86 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.1026, allocations: 25.7 kB / 471.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.325e-05/0.1026, allocations: 80.14 kB / 471.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.1026, allocations: 0 / 471.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.1027, allocations: 9.719 kB / 471.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1028, allocations: 318.8 kB / 471.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.1028, allocations: 4.125 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-06/0.1028, allocations: 0 / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.055e-05/0.1029, allocations: 72.19 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1029, allocations: 0 / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.939e-05/0.103, allocations: 59.41 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.103, allocations: 29.7 kB / 471.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.103, allocations: 7.875 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.103, allocations: 0 / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.103, allocations: 96 / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.103, allocations: 11.98 kB / 471.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.1031, allocations: 0 / 471.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1031, allocations: 0 / 471.9 MB, free: 11.42 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 8.771e-05/0.1032, allocations: 139.5 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.1032, allocations: 3.938 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.483e-05/0.1032, allocations: 11.02 kB / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1032, allocations: 0 / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1032, allocations: 0 / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.1032, allocations: 0 / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.1033, allocations: 153.7 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1033, allocations: 3.938 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.1033, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1034, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.1034, allocations: 3.938 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1034, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1034, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.559e-05/0.1035, allocations: 94.83 kB / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.1035, allocations: 81.3 kB / 472.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.1035, allocations: 3.938 kB / 472.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-06/0.1036, allocations: 4 kB / 472.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.407e-05/0.1036, allocations: 0 / 472.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-06/0.1036, allocations: 0 / 472.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.932e-05/0.1036, allocations: 79.28 kB / 472.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1036, allocations: 0 / 472.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1038, allocations: 23.98 kB / 472.5 MB, free: 10.72 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.0007738/0.1046, allocations: 0.8234 MB / 473.4 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.872e-05/0.1047, allocations: 55.41 kB / 473.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1047, allocations: 0 / 473.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.378e-05/0.1048, allocations: 63.38 kB / 473.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.1049, allocations: 7.938 kB / 473.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/0.1052, allocations: 122.7 kB / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.1054, allocations: 0.6768 MB / 474.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.1055, allocations: 0 / 474.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.452e-05/0.1055, allocations: 7.438 kB / 474.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1055, allocations: 0 / 474.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.149/0.2545, allocations: 1.601 MB / 475.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.027/8.281, allocations: 8.219 kB / 475.9 MB, free: 7.363 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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