Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_3_2_3_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.001063/0.001063, allocations: 107.8 kB / 16.41 MB, free: 6.484 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.001196/0.001196, allocations: 193.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.277/1.277, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1924/0.1924, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 71.91 kB / 441.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1032, allocations: 57.8 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001621/0.1049, allocations: 498.7 kB / 499.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005982/0.1055, allocations: 246.1 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.102e-05/0.1056, allocations: 0 / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.1056, allocations: 3.938 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.1056, allocations: 0 / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.1059, allocations: 55.75 kB / 499.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.868e-05/0.106, allocations: 0 / 499.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.072e-05/0.106, allocations: 4 kB / 499.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.621e-05/0.1061, allocations: 7.984 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.946e-05/0.1061, allocations: 0 / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-06/0.1061, allocations: 0 / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.1062, allocations: 67.94 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.443e-06/0.1063, allocations: 0 / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.146e-05/0.1063, allocations: 7.938 kB / 499.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.1064, allocations: 51.94 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1064, allocations: 0 / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1064, allocations: 0 / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1064, allocations: 0 / 500 MB, free: 11.42 MB / 382.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.0003063/0.1067, allocations: 364.6 kB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1068, allocations: 15.89 kB / 0.4886 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.1068, allocations: 30.75 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.405e-05/0.1069, allocations: 4.938 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.344e-05/0.107, allocations: 160.4 kB / 0.4888 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.313e-06/0.107, allocations: 384 / 0.4888 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.107, allocations: 8.359 kB / 0.4888 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.424e-05/0.1071, allocations: 34.14 kB / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1071, allocations: 3.938 kB / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.575e-06/0.1071, allocations: 0 / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.1071, allocations: 0 / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.127e-05/0.1071, allocations: 7.984 kB / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.1073, allocations: 149.7 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.033e-05/0.1073, allocations: 22.59 kB / 0.489 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.429e-05/0.1073, allocations: 4.859 kB / 0.489 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.44e-06/0.1074, allocations: 3.938 kB / 0.489 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.1074, allocations: 60.25 kB / 0.4891 GB, free: 10.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1074, allocations: 0 / 0.4891 GB, free: 10.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001511/0.1076, allocations: 67.41 kB / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.1076, allocations: 89.22 kB / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.374e-05/0.1077, allocations: 89.86 kB / 0.4893 GB, free: 10.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.1077, allocations: 25.7 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.184e-05/0.1077, allocations: 80.14 kB / 0.4894 GB, free: 9.988 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.1077, allocations: 0 / 0.4894 GB, free: 9.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.1078, allocations: 13.72 kB / 0.4895 GB, free: 9.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1079, allocations: 310.8 kB / 0.4898 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.107e-05/0.108, allocations: 0 / 0.4898 GB, free: 9.656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.856e-06/0.108, allocations: 7.938 kB / 0.4898 GB, free: 9.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.111e-05/0.1081, allocations: 68.2 kB / 0.4898 GB, free: 9.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1081, allocations: 0 / 0.4898 GB, free: 9.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.656e-05/0.1082, allocations: 63.39 kB / 0.4899 GB, free: 9.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.1082, allocations: 29.7 kB / 0.4899 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1082, allocations: 3.938 kB / 0.4899 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1082, allocations: 0 / 0.4899 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.1082, allocations: 4 kB / 0.4899 GB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1082, allocations: 96 / 0.4899 GB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1083, allocations: 4 kB / 0.4899 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.1083, allocations: 0 / 0.4899 GB, free: 9.445 MB / 382.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.915e-05/0.1083, allocations: 147.5 kB / 0.4901 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.225e-06/0.1084, allocations: 0 / 0.4901 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.528e-05/0.1084, allocations: 7.062 kB / 0.4901 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1084, allocations: 3.938 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1084, allocations: 0 / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1084, allocations: 3.938 kB / 0.4901 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.752e-05/0.1085, allocations: 149.7 kB / 0.4902 GB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1085, allocations: 8 kB / 0.4902 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.1085, allocations: 0 / 0.4902 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1085, allocations: 0 / 0.4902 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.1085, allocations: 3.938 kB / 0.4902 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1085, allocations: 0 / 0.4902 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1085, allocations: 0 / 0.4902 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.1087, allocations: 90.83 kB / 0.4903 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.1087, allocations: 81.14 kB / 0.4904 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.1087, allocations: 7.938 kB / 0.4904 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.1087, allocations: 0 / 0.4904 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/0.1088, allocations: 0 / 0.4904 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.1088, allocations: 0 / 0.4904 GB, free: 8.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.492e-05/0.1088, allocations: 75.28 kB / 0.4905 GB, free: 8.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1088, allocations: 0 / 0.4905 GB, free: 8.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002307/0.1091, allocations: 27.98 kB / 0.4905 GB, free: 8.738 MB / 382.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.0007597/0.1098, allocations: 0.7935 MB / 0.4913 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.1099, allocations: 59.41 kB / 0.4913 GB, free: 7.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1099, allocations: 8 kB / 0.4913 GB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.153e-05/0.11, allocations: 59.34 kB / 0.4914 GB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.1101, allocations: 0 / 0.4914 GB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003162/0.1105, allocations: 138.4 kB / 0.4915 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.1109, allocations: 0.669 MB / 0.4922 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.223e-06/0.1109, allocations: 0 / 0.4922 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.706e-05/0.1109, allocations: 11.42 kB / 0.4922 GB, free: 6.902 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1109, allocations: 4 kB / 0.4922 GB, free: 6.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.1288, allocations: 1.605 MB / 0.4938 GB, free: 5.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.135, allocations: 8.062 kB / 0.4938 GB, free: 5.27 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches