Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 120.7 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 186.9 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 51.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09724/0.09868, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003199/0.1019, allocations: 1.639 MB / 419.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009458/0.1028, allocations: 0.5182 MB / 419.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.218e-05/0.1029, allocations: 0 / 419.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.851e-05/0.1029, allocations: 15.86 kB / 419.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.725e-05/0.103, allocations: 19.78 kB / 419.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.1032, allocations: 35.89 kB / 420 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.1034, allocations: 95.53 kB / 420.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.1035, allocations: 27.97 kB / 420.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.793e-05/0.1036, allocations: 31.92 kB / 420.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.804e-05/0.1037, allocations: 43.84 kB / 420.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.1037, allocations: 12 kB / 420.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.8e-05/0.1037, allocations: 16 kB / 420.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.1038, allocations: 15.92 kB / 420.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1039, allocations: 51.78 kB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.1041, allocations: 103.6 kB / 420.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1041, allocations: 0 / 420.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1041, allocations: 0 / 420.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1041, allocations: 0 / 420.4 MB, free: 9.98 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005259/0.1046, allocations: 379.2 kB / 420.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1046, allocations: 16.03 kB / 420.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.305e-05/0.1047, allocations: 42.72 kB / 420.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.1048, allocations: 12.89 kB / 420.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.1049, allocations: 168.3 kB / 421 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.105, allocations: 12.36 kB / 421 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/0.105, allocations: 8.375 kB / 421 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001832/0.1052, allocations: 90.89 kB / 421.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1052, allocations: 3.938 kB / 421.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.1052, allocations: 4 kB / 421.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1052, allocations: 4 kB / 421.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.1053, allocations: 55.97 kB / 421.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007036/0.106, allocations: 396.5 kB / 421.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.1062, allocations: 70.53 kB / 421.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.057e-05/0.1062, allocations: 36.84 kB / 421.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1063, allocations: 4 kB / 421.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.1063, allocations: 34.5 kB / 421.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.1063, allocations: 0 / 421.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000226/0.1065, allocations: 89.75 kB / 421.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.1066, allocations: 51.41 kB / 421.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1067, allocations: 105.8 kB / 421.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.1067, allocations: 29.7 kB / 421.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/0.1067, allocations: 103.9 kB / 422.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.1068, allocations: 35.7 kB / 422.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/0.1068, allocations: 29.7 kB / 422.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.1071, allocations: 318.8 kB / 422.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.261e-05/0.1071, allocations: 19.98 kB / 422.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.22e-05/0.1072, allocations: 46.5 kB / 422.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.1073, allocations: 66.73 kB / 422.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1073, allocations: 0 / 422.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001771/0.1075, allocations: 105.6 kB / 422.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1075, allocations: 6.188 kB / 422.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1075, allocations: 256 / 422.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.1075, allocations: 11.88 kB / 422.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.1076, allocations: 31.92 kB / 422.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1076, allocations: 0 / 422.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.247e-05/0.1077, allocations: 7.953 kB / 422.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.1077, allocations: 8.062 kB / 422.7 MB, free: 7.379 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001404/0.1078, allocations: 114.5 kB / 422.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.1078, allocations: 7.953 kB / 422.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.1079, allocations: 12.31 kB / 422.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1079, allocations: 4 kB / 422.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1079, allocations: 0 / 422.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1079, allocations: 0 / 422.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1081, allocations: 189.6 kB / 423 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1081, allocations: 3.938 kB / 423 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.1082, allocations: 27.98 kB / 423.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1082, allocations: 0 / 423.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.1082, allocations: 7.938 kB / 423.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1082, allocations: 0 / 423.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1082, allocations: 3.938 kB / 423.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.1085, allocations: 191.5 kB / 423.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.716e-05/0.1085, allocations: 77.11 kB / 423.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.1085, allocations: 11.97 kB / 423.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.509e-05/0.1086, allocations: 4.062 kB / 423.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.712e-05/0.1086, allocations: 7.922 kB / 423.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.1086, allocations: 4 kB / 423.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.274e-05/0.1087, allocations: 83.28 kB / 423.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1087, allocations: 0 / 423.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002345/0.1089, allocations: 27.95 kB / 423.5 MB, free: 6.523 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0005167/0.1094, allocations: 0.728 MB / 424.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001348/0.1096, allocations: 55.86 kB / 424.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1096, allocations: 0 / 424.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.648e-05/0.1096, allocations: 23.92 kB / 424.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.1099, allocations: 8 kB / 424.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.1117, allocations: 1.553 MB / 425.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.112, allocations: 0.6924 MB / 426.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.607e-05/0.1121, allocations: 7.984 kB / 426.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.197e-05/0.1121, allocations: 23.44 kB / 426.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1121, allocations: 0 / 426.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02668/0.1388, allocations: 1.813 MB / 428.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.689, allocations: 17.33 kB / 428.4 MB, free: 1.555 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.889141829218715]