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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001016/0.001016, allocations: 190 kB / 17.54 MB, free: 6.066 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.292/1.292, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001, allocations: 51.8 kB / 300.2 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09648/0.09749, allocations: 49.44 MB / 349.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003122/0.1007, allocations: 1.682 MB / 351.4 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008856/0.1016, allocations: 0.5028 MB / 351.9 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.486e-05/0.1017, allocations: 3.938 kB / 351.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.048e-05/0.1017, allocations: 3.984 kB / 351.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.037e-05/0.1019, allocations: 27.77 kB / 351.9 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.1021, allocations: 19.98 kB / 351.9 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001387/0.1023, allocations: 107.5 kB / 352 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1024, allocations: 39.95 kB / 352.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.155e-05/0.1025, allocations: 39.86 kB / 352.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.14e-05/0.1025, allocations: 39.84 kB / 352.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.1026, allocations: 8 kB / 352.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.572e-05/0.1027, allocations: 12 kB / 352.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.96e-05/0.1027, allocations: 15.98 kB / 352.2 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.206e-05/0.1027, allocations: 43.8 kB / 352.2 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.1029, allocations: 99.95 kB / 352.3 MB, free: 1.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1029, allocations: 4 kB / 352.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1029, allocations: 0 / 352.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1029, allocations: 0 / 352.3 MB, free: 1.777 MB / 286.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.0004956/0.1034, allocations: 395.2 kB / 352.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1035, allocations: 8.031 kB / 352.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.1035, allocations: 42.73 kB / 352.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.1037, allocations: 8.844 kB / 352.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.1039, allocations: 172.3 kB / 352.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.1039, allocations: 12.38 kB / 352.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.1039, allocations: 4.375 kB / 353 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.1042, allocations: 89.78 kB / 353 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1042, allocations: 0 / 353 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.1042, allocations: 4 kB / 353 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.1042, allocations: 7.938 kB / 353.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.1044, allocations: 55.91 kB / 353.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008101/0.1052, allocations: 392.5 kB / 353.5 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.1053, allocations: 74.48 kB / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.057e-05/0.1054, allocations: 36.84 kB / 353.6 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.1054, allocations: 0 / 353.6 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.899e-05/0.1055, allocations: 38.56 kB / 353.6 MB, free: 300 kB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.1055, allocations: 0 / 353.6 MB, free: 300 kB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002304/0.1058, allocations: 93.45 kB / 353.7 MB, free: 200 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.1058, allocations: 51.41 kB / 353.8 MB, free: 136 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.236e-05/0.1059, allocations: 105.8 kB / 353.9 MB, free: 20 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.1059, allocations: 37.64 kB / 353.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.106, allocations: 95.89 kB / 354 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.106, allocations: 35.69 kB / 354 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/0.1061, allocations: 29.7 kB / 354.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1062, allocations: 322.8 kB / 354.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.46e-05/0.1062, allocations: 23.98 kB / 354.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.608e-05/0.1063, allocations: 41.69 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.206e-05/0.1064, allocations: 70.45 kB / 354.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1064, allocations: 0 / 354.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001482/0.1066, allocations: 109.6 kB / 354.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1066, allocations: 4 kB / 354.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.1066, allocations: 7.984 kB / 354.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1066, allocations: 3.938 kB / 354.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.1068, allocations: 20 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1068, allocations: 320 / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.1068, allocations: 11.89 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.1069, allocations: 4 kB / 354.7 MB, free: 15.17 MB / 302.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.0001213/0.107, allocations: 129.8 kB / 354.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.107, allocations: 7.906 kB / 354.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.1071, allocations: 12.31 kB / 354.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1071, allocations: 0 / 354.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1071, allocations: 256 / 354.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1071, allocations: 0 / 354.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.1073, allocations: 189.6 kB / 355 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1073, allocations: 0 / 355 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.1074, allocations: 23.98 kB / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1074, allocations: 0 / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.1074, allocations: 7.938 kB / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1074, allocations: 0 / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1074, allocations: 0 / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.1077, allocations: 199.3 kB / 355.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.743e-05/0.1077, allocations: 81.14 kB / 355.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.1078, allocations: 7.938 kB / 355.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.278e-05/0.1078, allocations: 4 kB / 355.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.817e-05/0.1079, allocations: 8.047 kB / 355.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-06/0.1079, allocations: 4 kB / 355.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.617e-05/0.1079, allocations: 87.22 kB / 355.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1079, allocations: 0 / 355.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1082, allocations: 31.84 kB / 355.5 MB, free: 14.3 MB / 302.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.0004808/0.1087, allocations: 0.7241 MB / 356.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.1088, allocations: 63.84 kB / 356.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1088, allocations: 0 / 356.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.736e-05/0.1089, allocations: 24 kB / 356.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.1092, allocations: 11.94 kB / 356.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.1109, allocations: 1.558 MB / 357.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.1113, allocations: 0.6963 MB / 358.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.554e-05/0.1113, allocations: 0 / 358.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.1114, allocations: 23.42 kB / 358.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1114, allocations: 0 / 358.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03056/0.142, allocations: 1.675 MB / 360.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002316/0.1423, allocations: 197.5 kB / 360.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/1.914, allocations: 0 / 360.4 MB, free: 9.238 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches