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.001315/0.001315, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.001287/0.001287, allocations: 189 kB / 21.43 MB, free: 1.641 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.343/1.343, allocations: 225.6 MB / 249.8 MB, free: 3.727 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 47.92 kB / 366.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09739, allocations: 52.15 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002966/0.1004, allocations: 1.628 MB / 420.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009387/0.1013, allocations: 0.5182 MB / 420.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.81e-05/0.1014, allocations: 0 / 420.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.611e-05/0.1014, allocations: 7.922 kB / 420.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.022e-05/0.1015, allocations: 31.7 kB / 420.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.1017, allocations: 31.95 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.1019, allocations: 103.5 kB / 420.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.102, allocations: 23.98 kB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.503e-05/0.1021, allocations: 39.91 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.864e-05/0.1022, allocations: 43.84 kB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.1022, allocations: 8 kB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.1023, allocations: 16 kB / 420.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.1023, allocations: 15.92 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.53e-05/0.1024, allocations: 39.81 kB / 421 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.1025, allocations: 103.6 kB / 421.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1026, allocations: 4 kB / 421.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1026, allocations: 0 / 421.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1026, allocations: 0 / 421.1 MB, free: 10.02 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.0005539/0.1031, allocations: 387.1 kB / 421.5 MB, free: 9.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.1032, allocations: 12.03 kB / 421.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.72e-05/0.1032, allocations: 192 / 421.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.1032, allocations: 46.67 kB / 421.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.1033, allocations: 16.83 kB / 421.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.1035, allocations: 168.3 kB / 421.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.1035, allocations: 8.375 kB / 421.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.1035, allocations: 8.375 kB / 421.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.1037, allocations: 89.55 kB / 421.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1037, allocations: 3.938 kB / 421.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.1037, allocations: 8 kB / 421.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1038, allocations: 3.984 kB / 421.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.1039, allocations: 51.97 kB / 421.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006994/0.1046, allocations: 396.5 kB / 422.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.1047, allocations: 70.55 kB / 422.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.27e-05/0.1048, allocations: 24.86 kB / 422.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.1048, allocations: 4 kB / 422.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.1048, allocations: 42.55 kB / 422.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.1048, allocations: 0 / 422.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002232/0.105, allocations: 97.83 kB / 422.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.1051, allocations: 51.41 kB / 422.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1052, allocations: 109.8 kB / 422.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.1052, allocations: 25.7 kB / 422.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.267e-05/0.1053, allocations: 107.9 kB / 422.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.1053, allocations: 31.7 kB / 422.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/0.1054, allocations: 29.7 kB / 422.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1055, allocations: 318.8 kB / 423.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.639e-05/0.1056, allocations: 23.98 kB / 423.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.856e-05/0.1056, allocations: 42.56 kB / 423.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.1057, allocations: 66.52 kB / 423.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1057, allocations: 0 / 423.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001591/0.1059, allocations: 101.6 kB / 423.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1059, allocations: 8 kB / 423.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1059, allocations: 3.938 kB / 423.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1059, allocations: 3.938 kB / 423.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.1061, allocations: 27.94 kB / 423.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1061, allocations: 4 kB / 423.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.116e-05/0.1061, allocations: 3.953 kB / 423.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.1061, allocations: 7.984 kB / 423.4 MB, free: 7.414 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.0001094/0.1062, allocations: 122.6 kB / 423.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.864e-05/0.1063, allocations: 7.953 kB / 423.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.473e-05/0.1063, allocations: 12.31 kB / 423.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1063, allocations: 0 / 423.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1063, allocations: 0 / 423.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.1063, allocations: 4 kB / 423.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.1065, allocations: 189.6 kB / 423.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1065, allocations: 3.938 kB / 423.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.1066, allocations: 19.98 kB / 423.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1066, allocations: 3.938 kB / 423.8 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.1067, allocations: 11.94 kB / 423.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1067, allocations: 0 / 423.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1067, allocations: 0 / 423.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.1069, allocations: 187.5 kB / 424 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.1069, allocations: 81.14 kB / 424.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.1069, allocations: 7.938 kB / 424.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.438e-05/0.107, allocations: 0 / 424.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.686e-05/0.107, allocations: 4.25 kB / 424.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.107, allocations: 4.062 kB / 424.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.391e-05/0.1071, allocations: 95.27 kB / 424.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1071, allocations: 0 / 424.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.1073, allocations: 19.95 kB / 424.2 MB, free: 6.562 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.0004952/0.1078, allocations: 0.7318 MB / 424.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.108, allocations: 64.5 kB / 425 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.108, allocations: 0 / 425 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.867e-05/0.108, allocations: 27.92 kB / 425 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.1083, allocations: 8.156 kB / 425 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.11, allocations: 1.556 MB / 426.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.1103, allocations: 0.6924 MB / 427.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.727e-05/0.1103, allocations: 0 / 427.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.1104, allocations: 23.42 kB / 427.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1104, allocations: 4 kB / 427.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.1287, allocations: 1.854 MB / 429.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.591, allocations: 10.95 kB / 429.2 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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.809458410018124]